Date comparison not working in Excel formula

Tom Sharpe picture Tom Sharpe · Oct 9, 2014 · Viewed 87.5k times · Source

If I put the date 31/12/2013 in A1 and another date 1/1/2014 in A2 then a formula like

 =A1<A2 

gives the expected result, TRUE.

If I put the formula

=A1<1/1/2014 

in another cell, it gives the result FALSE.

The question is how to adjust the second formula to make it give the correct result, and why it doesn't work as it stands.

I've been looking at this for a while and have found some related posts like

Comparing computed dates with entered dates

but not one which directly answers the question.

Answer

Alex K. picture Alex K. · Oct 9, 2014

1/1/2014 is 1 divided by 1 divided by 2014.

Instead; =A1<DATEVALUE("1/1/2014")