Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Deb Deb is offline
external usenet poster
 
Posts: 102
Default Calculating Age NOT as of today but as of a date in the future or

I often need to calculate student age as of a specific date.
For example:
A1: DOB
A2: age as of Sept 30, 2010

I need a formula that will also work if I need to choose a date in the past
too, such as: age as of Sept 30, 2007

Thanks in advance for your help.




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default Calculating Age NOT as of today but as of a date in the future or

One way could be:
=IF(A1<A2,DATEDIF(A1,A2,"y"),DATEDIF(A2,A1,"y"))
Micky


"Deb" wrote:

I often need to calculate student age as of a specific date.
For example:
A1: DOB
A2: age as of Sept 30, 2010

I need a formula that will also work if I need to choose a date in the past
too, such as: age as of Sept 30, 2007

Thanks in advance for your help.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Calculating Age NOT as of today but as of a date in the future

http://www.cpearson.com/excel/datedif.aspx
--
HTH...

Jim Thomlinson


"מיכאל (מיקי) אבידן" wrote:

One way could be:
=IF(A1<A2,DATEDIF(A1,A2,"y"),DATEDIF(A2,A1,"y"))
Micky


"Deb" wrote:

I often need to calculate student age as of a specific date.
For example:
A1: DOB
A2: age as of Sept 30, 2010

I need a formula that will also work if I need to choose a date in the past
too, such as: age as of Sept 30, 2007

Thanks in advance for your help.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Deb Deb is offline
external usenet poster
 
Posts: 102
Default Calculating Age NOT as of today but as of a date in the future

Thanks! This worked perfect!!

"מיכאל (מיקי) אבידן" wrote:

One way could be:
=IF(A1<A2,DATEDIF(A1,A2,"y"),DATEDIF(A2,A1,"y"))
Micky


"Deb" wrote:

I often need to calculate student age as of a specific date.
For example:
A1: DOB
A2: age as of Sept 30, 2010

I need a formula that will also work if I need to choose a date in the past
too, such as: age as of Sept 30, 2007

Thanks in advance for your help.




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
Calculating a future date using system clock & time remaining Steve Chalom[_2_] Excel Worksheet Functions 1 November 5th 09 03:11 PM
Problem with calculating date 6 months into the future Torfinn Brokke Excel Worksheet Functions 3 August 6th 09 02:17 PM
Calculating a future date ClamBarLover Excel Discussion (Misc queries) 7 June 22nd 07 12:53 AM
Calculating a Date for the Future Niki6 Excel Worksheet Functions 4 September 19th 05 11:49 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


All times are GMT +1. The time now is 08:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"