Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default formula telling me if person is 19 or older today

I need a formula to tell me if a person turned 19 today or is older than 19
based on dob. Excel 2000. thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default formula telling me if person is 19 or older today

Try this:

=DATEDIF(dob,TODAY(),"y")

Biff

"kelley" wrote in message
...
I need a formula to tell me if a person turned 19 today or is older than 19
based on dob. Excel 2000. thank you.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default formula telling me if person is 19 or older today

I need a formula to tell me if a person turned 19 today or is
older than 19 based on dob. Excel 2000. thank you.


Is this what you were after?

=IF(A1=DATE(YEAR(NOW())-19,MONTH(NOW()),DAY(NOW())),"Born
today",IF(A1<DATE(YEAR(NOW())-19,MONTH(NOW()),DAY(NOW())),"Older than
19","Too young"))

where I have assumed the date of birth is in A1.

Rick

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default formula telling me if person is 19 or older today

Congratulations, you have come closer than anyone. Thank you. For some
reason, the first few months of the birthday year and a few days after the
19th birthday, compute incorrectly. This is the closest I have come, though.

"Rick Rothstein (MVP - VB)" wrote:

I need a formula to tell me if a person turned 19 today or is
older than 19 based on dob. Excel 2000. thank you.


Is this what you were after?

=IF(A1=DATE(YEAR(NOW())-19,MONTH(NOW()),DAY(NOW())),"Born
today",IF(A1<DATE(YEAR(NOW())-19,MONTH(NOW()),DAY(NOW())),"Older than
19","Too young"))

where I have assumed the date of birth is in A1.

Rick


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default formula telling me if person is 19 or older today

Congratulations, you have come closer than anyone. Thank you. For some
reason, the first few months of the birthday year and a few days after the
19th birthday, compute incorrectly. This is the closest I have come,
though.


Can you post a couple of examples where this is the case so that I can track
down where the problem is?

Rick



  #6   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default formula telling me if person is 19 or older today

verify the format of the date in A1 is as you expect it to be
=day(A1)
=Month(A1)
I have had data I though was MM/DD/YY which was really DD/MM/YY

"kelley" wrote:

Congratulations, you have come closer than anyone. Thank you. For some
reason, the first few months of the birthday year and a few days after the
19th birthday, compute incorrectly. This is the closest I have come, though.

"Rick Rothstein (MVP - VB)" wrote:

I need a formula to tell me if a person turned 19 today or is
older than 19 based on dob. Excel 2000. thank you.


Is this what you were after?

=IF(A1=DATE(YEAR(NOW())-19,MONTH(NOW()),DAY(NOW())),"Born
today",IF(A1<DATE(YEAR(NOW())-19,MONTH(NOW()),DAY(NOW())),"Older than
19","Too young"))

where I have assumed the date of birth is in A1.

Rick


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
COUNTIF for numbers of dates in column which are 30 days older than today [email protected] Excel Worksheet Functions 4 April 3rd 23 02:39 PM
Computing days between TODAY() and older date in a cell Big UT Fan Excel Discussion (Misc queries) 3 November 14th 06 08:14 PM
How do I add a range by date over 90 days older than today John DeLosa Excel Discussion (Misc queries) 4 February 16th 06 09:30 PM
I want a formula to find age of person Aaron Excel Worksheet Functions 2 December 5th 05 08:46 PM


All times are GMT +1. The time now is 09:21 PM.

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"