Hi all,
I work in a business where we have a date driven process. As happens with all data, however, sometimes entry errors happen.
I want a formula that will check to make sure that the second record date (AE) is not greater than the first record date (AC).
However, when I write the formula =IF(AE2>AC2,"1","0) then it returns a 1 for some fields that shouldn't be flagged as errors.
I even tried wrapping them in the DATEVALUE function so that =IF(DATEVALUE(AE2)>DATEVALUE(AC2),"1","0"), but that didn't work either.
Part of the problem is that a date in AE might be 3/2/2018 and a date in AC might be 4/19/2019, which would normally make the date in AE less than AC, but when we translate them to number then AC = 42844 and AE = 43161, making AE greater than AC and messing up my world.
How might I write formula around this little problem and allow Excel to understand that 3/2/2018 (AE) really is less than 4/19/2019 (AC)?
I work in a business where we have a date driven process. As happens with all data, however, sometimes entry errors happen.
I want a formula that will check to make sure that the second record date (AE) is not greater than the first record date (AC).
However, when I write the formula =IF(AE2>AC2,"1","0) then it returns a 1 for some fields that shouldn't be flagged as errors.
I even tried wrapping them in the DATEVALUE function so that =IF(DATEVALUE(AE2)>DATEVALUE(AC2),"1","0"), but that didn't work either.
Part of the problem is that a date in AE might be 3/2/2018 and a date in AC might be 4/19/2019, which would normally make the date in AE less than AC, but when we translate them to number then AC = 42844 and AE = 43161, making AE greater than AC and messing up my world.
How might I write formula around this little problem and allow Excel to understand that 3/2/2018 (AE) really is less than 4/19/2019 (AC)?