Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
doblesb
 
Posts: n/a
Default Getting 106 for Birthday Formula


I have created a form in excel which has a place for the person's date
of birth(DOB). When I enter the DOB the year shows up in the "age"
space. I am using the formula, =DATEDIF(E6, NOW(),"y")&"", in the "age"
space to create the correct age.

Here's my problem, when I do not have a DOB the number 106 shows up in
the "age" space. How can I stop this from happening?

Thanks in advance,

Steve


--
doblesb
------------------------------------------------------------------------
doblesb's Profile: http://www.excelforum.com/member.php...o&userid=33665
View this thread: http://www.excelforum.com/showthread...hreadid=534372

  #2   Report Post  
Posted to microsoft.public.excel.misc
Fred Smith
 
Posts: n/a
Default Getting 106 for Birthday Formula

Put your formula in an IF statement, as in:

=if(e6="","",datedif(e6,now(),"y"))

Does this help?

--
Regards,
Fred


"doblesb" wrote in message
...

I have created a form in excel which has a place for the person's date
of birth(DOB). When I enter the DOB the year shows up in the "age"
space. I am using the formula, =DATEDIF(E6, NOW(),"y")&"", in the "age"
space to create the correct age.

Here's my problem, when I do not have a DOB the number 106 shows up in
the "age" space. How can I stop this from happening?

Thanks in advance,

Steve


--
doblesb
------------------------------------------------------------------------
doblesb's Profile:
http://www.excelforum.com/member.php...o&userid=33665
View this thread: http://www.excelforum.com/showthread...hreadid=534372



  #3   Report Post  
Posted to microsoft.public.excel.misc
davesexcel
 
Posts: n/a
Default Getting 106 for Birthday Formula


=IF(E6="","",DATEDIF(E6,NOW(),"y")&"")


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=534372

  #4   Report Post  
Posted to microsoft.public.excel.misc
doblesb
 
Posts: n/a
Default Getting 106 for Birthday Formula


Thanks Fred Smith and Davesexcel,

That formula worked.

Steve


--
doblesb
------------------------------------------------------------------------
doblesb's Profile: http://www.excelforum.com/member.php...o&userid=33665
View this thread: http://www.excelforum.com/showthread...hreadid=534372

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 10:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"