Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fidelio1st
 
Posts: n/a
Default Formula to subtract a date from current date


Hi, I'm creating a database of ages on people. What I need is to create
a formula that will tell me how old they are on the current day; i.e. if
a Person A's birthday is 2/27/80, then the Age Column will read "25"
today (2/26/06). But when I open the file tomorrow (2/27/06) it will
change to "26".

I.e. I don't want to manually have to update the Age Column. Is there
a formula to do this?

So far I've come up with Column A=Birthday, Column B=Today's date (with
the formula "TODAY()") and when I subtract A from B, it gives me a year,
where the age is the last 2 digits. How can I take that number and
convert it into the person's age?

Ex. 2/26/2006 - 8/18/1967 = 7/11/38. While the 7/11 is superfulous, 38
is the age. But how do I convert that number to state that?


--
Fidelio1st
------------------------------------------------------------------------
Fidelio1st's Profile: http://www.excelforum.com/member.php...o&userid=31956
View this thread: http://www.excelforum.com/showthread...hreadid=516761

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default Formula to subtract a date from current date


=ROUND((B15-A15)/365.25,0)
just subtract the two cells and round it to the nearest whole number
Dave


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=516761

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Formula to subtract a date from current date

Hi!

Try this:

A1 = birth date
B1 = =TODAY()

=DATEDIF(A1,B1,"y")

Biff

"Fidelio1st" wrote
in message ...

Hi, I'm creating a database of ages on people. What I need is to create
a formula that will tell me how old they are on the current day; i.e. if
a Person A's birthday is 2/27/80, then the Age Column will read "25"
today (2/26/06). But when I open the file tomorrow (2/27/06) it will
change to "26".

I.e. I don't want to manually have to update the Age Column. Is there
a formula to do this?

So far I've come up with Column A=Birthday, Column B=Today's date (with
the formula "TODAY()") and when I subtract A from B, it gives me a year,
where the age is the last 2 digits. How can I take that number and
convert it into the person's age?

Ex. 2/26/2006 - 8/18/1967 = 7/11/38. While the 7/11 is superfulous, 38
is the age. But how do I convert that number to state that?


--
Fidelio1st
------------------------------------------------------------------------
Fidelio1st's Profile:
http://www.excelforum.com/member.php...o&userid=31956
View this thread: http://www.excelforum.com/showthread...hreadid=516761



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ryan Poth
 
Posts: n/a
Default Formula to subtract a date from current date

Fidelio,

There is an undocumented Excel function called "DATEDIF" which will help you
out here. Try:

=DATEDIF(A1,TODAY(),"y")
where A1 contains the persons birthdate.

For more info on this function, have a look at Chip Pearson's topic:

http://www.cpearson.com/excel/datedif.htm

HTH,
Ryan

"Fidelio1st" wrote:


Hi, I'm creating a database of ages on people. What I need is to create
a formula that will tell me how old they are on the current day; i.e. if
a Person A's birthday is 2/27/80, then the Age Column will read "25"
today (2/26/06). But when I open the file tomorrow (2/27/06) it will
change to "26".

I.e. I don't want to manually have to update the Age Column. Is there
a formula to do this?

So far I've come up with Column A=Birthday, Column B=Today's date (with
the formula "TODAY()") and when I subtract A from B, it gives me a year,
where the age is the last 2 digits. How can I take that number and
convert it into the person's age?

Ex. 2/26/2006 - 8/18/1967 = 7/11/38. While the 7/11 is superfulous, 38
is the age. But how do I convert that number to state that?


--
Fidelio1st
------------------------------------------------------------------------
Fidelio1st's Profile: http://www.excelforum.com/member.php...o&userid=31956
View this thread: http://www.excelforum.com/showthread...hreadid=516761


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
including current date in formula Candace Excel Worksheet Functions 3 February 10th 06 05:51 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Trending Formula Results by Date sony654 Excel Worksheet Functions 0 January 2nd 06 02:33 AM
To create formula to add 3 years and subtract 1 day from a date? rostroncarlyle Excel Worksheet Functions 2 December 8th 05 11:21 PM
Value between 2 dates AG Excel Worksheet Functions 11 August 21st 05 05:32 PM


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