#1   Report Post  
Posted to microsoft.public.excel.misc
Clash
 
Posts: n/a
Default Age calculation


Hi, all.

This one has been bugging me for the last two hours.

I am trying to calculate someones age from their DOB, this I have done
using this formula; =year(today()-A1)-1900, which was kindly given to
me here.

But my boss has just thrown me a curve ball, and asked if I can show
years & months. All I can come up with is years and percentage of year,
I did this by custom formatting. But instead of, say 4 months, it shows
.25 months.

Any help would be great.


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=524730

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Age calculation

My original formula goes false in some cases.
You shoul use

=DATEDIF(A1,TODAY(),"y") to get the number of years
=DATEDIF(A1,TODAY(),'"ym") to get the extra months

HTH
--
AP

"Clash" a écrit dans le
message de ...

Hi, all.

This one has been bugging me for the last two hours.

I am trying to calculate someones age from their DOB, this I have done
using this formula; =year(today()-A1)-1900, which was kindly given to
me here.

But my boss has just thrown me a curve ball, and asked if I can show
years & months. All I can come up with is years and percentage of year,
I did this by custom formatting. But instead of, say 4 months, it shows
25 months.

Any help would be great.


--
Clash
------------------------------------------------------------------------
Clash's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Age calculation

See www.cpearson.com/excel/datedif.htm

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Clash"
wrote in message
...

Hi, all.

This one has been bugging me for the last two hours.

I am trying to calculate someones age from their DOB, this I
have done
using this formula; =year(today()-A1)-1900, which was kindly
given to
me here.

But my boss has just thrown me a curve ball, and asked if I can
show
years & months. All I can come up with is years and percentage
of year,
I did this by custom formatting. But instead of, say 4 months,
it shows
25 months.

Any help would be great.


--
Clash
------------------------------------------------------------------------
Clash's Profile:
http://www.excelforum.com/member.php...o&userid=18951
View this thread:
http://www.excelforum.com/showthread...hreadid=524730



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
Stopping Calculation Kelly Excel Discussion (Misc queries) 2 March 15th 06 10:56 PM
MOREFUNC.XLL - RECALL() to trigger once only calculation? rhay999 Excel Discussion (Misc queries) 0 October 16th 05 06:01 PM
Calculation Setting in Excel Stuart Bisset Excel Discussion (Misc queries) 0 June 17th 05 09:54 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


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