LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Calculating age when person born before 1900

Calculating a person's age works using an undeclared function in Excel
(datedif) as in
=DATEDIF(A1,NOW(),"y")&" Y, "& DATEDIF(A1,NOW(),"ym")&
" M, " & DATEDIF(A1,NOW(),"md") & " D"

But this doesn't work if the date in A1 is before 1900 and if the date is
not formatted 01-Jan-06 (for example). Any ideas as to how to get around this
elegantly without going through laborious additions of 100's of years etc. I
want to use it in conjunction with census dates hence the reason to go back
beyond 1900. This problem may be why datedif is not a documented function.
 
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
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
How to avoid "update links" startup prompt? [email protected] Excel Discussion (Misc queries) 8 July 23rd 06 04:20 AM
is 1900 a Leap Year? Lex_Muga Excel Discussion (Misc queries) 11 December 29th 05 07:42 PM
Calculating Age of person on admission date Alan Excel Discussion (Misc queries) 10 October 8th 05 06:30 AM
D Sum or SumIF Jody Excel Worksheet Functions 3 December 3rd 04 11:39 PM


All times are GMT +1. The time now is 02:09 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"