if function with dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to combine an if function with dates:

my formula reads: =IF(C2<"10/01/04",B2,"")

It is not working...can anyone help?
 
It worked for me when I changed it slightly:
=IF(C2<DATEVALUE("10/01/04"),B2,"")

I think previously Excel was performing a text comparison, rather than
a date comparison.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top