![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
Cn someone please tell me how to subtract a properly formatted birthdate from 07/01/2002 to arrive at the person's actual age ? I would be very grateful. Thanks
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Las Vegas Nevada USA
Posts: 240
|
Just subtract one from the other.
__________________
George Learn to listen. Opportunity sometimes knocks very softly. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
|
You can use Datedif. Datedif is in nearly all versions of Excel but it was only documented in Excel2000. With Date of Birth as a valid date and that cell named DOB use the formula below. Use a second date such as TODAY or the date that you cited (07/01/2002); note you can use cell references. If you want all the information in one cell with text, consider =DATEDIF(DOB,TODAY(),"Y")&" years, "&DATEDIF(DOB,TODAY(),"ym")& " months, and "&DATEDIF(DOB,TODAY(),"md") &" days" You can extract the sub parts and have each part in a separate cell. Note: There are some anomalies with the day calculations. [ This Message was edited by: Dave Patton on 2002-05-04 17:18 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|