Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Year, Month, Days

Check out Chip Pearson's page on Date Differences:
http://www.cpearson.com/excel/datedif.htm

Assuming A1 contains the date in question
B1: =TODAY()
C1: =DATEDIF(A1, B1, "y")
D1: =DATEDIF(A1, B1, "ym")
E1: =DATEDIF(A1, B1, "md")
F1: =C1 & " year" & LEFT("s", C1<1) & ", " & D1 & " month" & LEFT("s",
D1<1) & ", " & E1 & " day" & LEFT("s", E1<1)

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"sajevan " wrote in message
...
HELLO,

PLS. HELP ME WITH A FORMULA TO CALCULATE THE AGE FOR A PERSON.

THE DATE OF BIRTH IS 2.12.1969




---
Message posted from
http://www.ExcelForum.com/



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
YEAR MONTH DAYS COUNTER ad2ad79 Excel Worksheet Functions 8 June 14th 09 02:42 PM
YEAR MONTH DAYS COUNTER Gerry[_3_] Excel Discussion (Misc queries) 4 June 13th 09 06:53 PM
YEAR MONTH DAYS COUNTER ad2ad79 Excel Worksheet Functions 2 June 13th 09 04:28 PM
YEAR MONTH DAYS COUNTER ad2ad79 Excel Discussion (Misc queries) 4 June 13th 09 02:27 PM
To detect month or days or year in if formula ShamsulZ Excel Discussion (Misc queries) 1 November 6th 06 07:47 AM


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