If cell = date return yes or no. [Solved/Closed]

- Jan 16, 2011 at 05:34 PM - Latest reply:  JD
- Jan 16, 2011 at 09:24 PM
Hello,

I need an excel formula that tells me if a a cell = a date to return yes or no. I tried =IF(I12=TRUE, Yes, No) and =IF(I12=DATE, Yes, No) but I keep getting #name errors.

If its any help, the cell with the date (I12) is retreiving it via a vlookup function and is not just a date entered manually.

The only other value in I12 will be an #n/a error. Is it possible to use ISNA to return no if true and yes if false?

Could anyone help?


See more 

3 replies

Best answer
Posts
1865
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
July 30, 2015
- Jan 16, 2011 at 08:40 PM
1
Thank you
"date" in excel is a number


suppose the date (entered correctly according to regional format) is in C1

try in another empty cell this formula

=isnumber(C1)

Thank you, venkat1926 1

Something to say? Add comment

CCM has helped 1648 users this month

0
Thank you
Cheers.
0
Thank you
My final forumla is now

=if(isnumber(I12),"yes","no")

Thanks.