One way
In C1, copied down: =TEXT(B1,"yyyy")=A1&""
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Lisa12" wrote:
> I am trying to have Excel look at two cells and verify if they are =. The
> problem is one is formatted as a number and the second is formatted as a
> date. How can I make it look at the number as a date?
>
> A1 B2
> 2002 1/1/2002
> 2003 1/1/2003
> 2004 1/1/2004
>
> I need to return a value from B3 if A1 is = to B2, but right now I am not
> comparing a date to a date, and when I try to convert 2002 to a date, it
> converts to 1905.
>
> Please help.
>
> Thank you,
>
> Lisa12