View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pecoflyer[_354_] Pecoflyer[_354_] is offline
external usenet poster
 
Posts: 1
Default Help w/simple Date Formula please


Hi,

I don't understand your sentence "It works but Excel says there's an
error
in it."

Which error do you get, and what works?

Dax Arroway;373842 Wrote:
I've got two columns (D, E) headed DOB and Age. Basically what I'm
looking
for is a forumula which looks at D, puts the amount of years in E as
in:
=DATEDIF(D210,TODAY(),"y")
but not display anything if D is blank.

What I came up with is:
=IF(D2="","",(DATEDIF(D2,TODAY(),"y")))
but that doesn't seem quite right. It works but Excel says there's an
error
in it.

Any help please?
Thanks in advance.
--D.
--
I would give my left hand to be ambidextrous!



--
Pecoflyer

Cheers -
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=104645