ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help need with formula (https://www.excelbanter.com/excel-worksheet-functions/28366-help-need-formula.html)

smith.james0

Help need with formula
 

I need to work out how many years and months someone been alive. Can
anyone help?


--
smith.james0
------------------------------------------------------------------------
smith.james0's Profile: http://www.excelforum.com/member.php...o&userid=16230
View this thread: http://www.excelforum.com/showthread...hreadid=374933


olasa


This is one option:

A1: birthdate
B1: =DATEDIF(A1,TODAY(),"Y")&" years &
"&MOD(DATEDIF(A1,TODAY(),"M"),12)&" months"

Ola Sandström


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=374933


Domenic


Also...

=DATEDIF(A1,TODAY(),"Y")&" Years, "&DATEDIF(A1,TODAY(),"YM")&" Months"

Hope this helps!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=374933


olasa


Much better...


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=374933


Ragdyer

Try the Datedif function.

It's undocumented except in XL2k.

BUT, you can find it explained at Chip Pearson's web site at:

http://www.cpearson.com/excel/datedif.htm
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"smith.james0"
wrote in message
news:smith.james0.1ptaab_1117400703.8379@excelforu m-nospam.com...

I need to work out how many years and months someone been alive. Can
anyone help?


--
smith.james0
------------------------------------------------------------------------
smith.james0's Profile:

http://www.excelforum.com/member.php...o&userid=16230
View this thread: http://www.excelforum.com/showthread...hreadid=374933




Hi

Have a look at DATEDIF. Here is some info on how it works:
http://www.cpearson.com/excel/datedif.htm

Andy.

"smith.james0"
wrote in message
news:smith.james0.1ptaab_1117400703.8379@excelforu m-nospam.com...

I need to work out how many years and months someone been alive. Can
anyone help?


--
smith.james0
------------------------------------------------------------------------
smith.james0's Profile:
http://www.excelforum.com/member.php...o&userid=16230
View this thread: http://www.excelforum.com/showthread...hreadid=374933




smith.james0


Thanks a lot that works great :)


--
smith.james0
------------------------------------------------------------------------
smith.james0's Profile: http://www.excelforum.com/member.php...o&userid=16230
View this thread: http://www.excelforum.com/showthread...hreadid=374933



All times are GMT +1. The time now is 11:59 PM.

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