ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculating Age NOT as of today but as of a date in the future or (https://www.excelbanter.com/excel-discussion-misc-queries/260797-calculating-age-not-today-but-date-future.html)

Deb

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.





מיכאל (מיקי) אבידן

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.





Jim Thomlinson

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.





Deb

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.






All times are GMT +1. The time now is 12:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com