Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dhealy
 
Posts: n/a
Default Calculating current age from 2 date cells

I have 2 cells, one with date of birth and one with current date. I am
trying to get the current age to calcualate using these two fields....any
suggestions?

  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

you can use the datedif function to do this:

with the birthdate in A1 and the date you're interested in in B1
=DATEDIF(A1,B1,"y") & " years, " & DATEDIF(A1,B1,"ym") & " months, " &
DATEDIF(A1,B1,"md") & " days"

if you want to use the current date you don't need to have it in another
cell you can use the NOW function, e.g.
=DATEDIF(A1,NOW(),"y") & " years, " & DATEDIF(A1,NOW(),"ym") & " months, " &
DATEDIF(A1,NOW(),"md") & " days"

for more details check out
http://www.cpearson.com/excel/datedif.htm#Age

Cheers
JulieD

"dhealy" wrote in message
...
I have 2 cells, one with date of birth and one with current date. I am
trying to get the current age to calcualate using these two fields....any
suggestions?



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
Lock in current date Angus Excel Discussion (Misc queries) 1 January 12th 05 05:27 PM
Date Formatted Cells Mike Excel Worksheet Functions 3 December 3rd 04 05:55 PM
split combined Time Date cells Mark Ada Excel Discussion (Misc queries) 2 December 1st 04 03:06 AM
How do I program a cell to automaticinput the current date as dat. ces Excel Worksheet Functions 1 November 8th 04 11:11 PM
Calculating due date? Loyalise Excel Worksheet Functions 2 November 2nd 04 07:38 AM


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