IF function that depends on a date

P

Pointer

In cell A1 I have a date. The date is not in text form but is
formatted as a date.

If the date is 7/4/04, I want cell B1 to say "The Fourth". If A1 is
not 7/4/04, cell B1 should read "No holiday".

How can I do this?
 
P

Paul B

Pointer, try this in B1
=IF(A1=DATEVALUE("07/04/2004"),"The Fourth","No holiday")

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
 
C

cooldude

i know this works:

=IF(7/4/4,"The Fourth","No holiday")

but only on the same cell, i'll play with it and see if i can make it work
on the B1 cell. :)
 

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

Constant date in one cell 1
CONDITIONAL FORMATTING QUERY 0
Help with formula 3
Duff Date Text 3
Converting a date to number 3
Hot Date 4
somewhat complicated conditional formula 2
Subtracting months formula 5

Top