if statement with dates

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

Guest

I would like to write a statement like:
If(a1>0,1/1/2004)
where 1/1/2004 is interpreted as a date.
EXCEL is doing the arithemetic and giving me a decimal.
I could write 1/1/2004 as its numeric offset and write something like:
if(a1>0,37987), but that is rather awkward.

What else can I do?

TIA,
Sanford
 
would it help if you used

=IF(A1>0,Date(2004,01,01),0)

Date function is used as Date(Y,M,D
 

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

Similar Threads


Back
Top