Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
carlharris
 
Posts: n/a
Default Calculate differences between age


I have a spreadsheet and I want to have ages in a YY: MM format (excel
doesnt like that, any help would be great). eg. 11:08 is 11 years and 8
months.

I will have an actual age for every entry and then a reading age in the
same format for every entry. I will then calculate the difference and
put them in order of the highest difference.

I basically need to know the formula for the format I want to use as my
efforts have not come to fruition as yet!

Thank you in advance, this is a great little community by the looks of
it!

Carl


--
carlharris
------------------------------------------------------------------------
carlharris's Profile: http://www.excelforum.com/member.php...o&userid=27752
View this thread: http://www.excelforum.com/showthread...hreadid=472610

  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi carlharris

With the date in A2
This will also work if it is negative

=IF(A2<=TODAY(),DATEDIF(A2,TODAY(),"Y") & " y " & DATEDIF(A2,TODAY(),"ym") & " m","-"&DATEDIF(TODAY(),A2,"y")& " y "
&DATEDIF(TODAY(),A2,"ym")& " m")

With DateRefiner you can insert this formula in your data table if you want
http://www.rondebruin.nl/datarefiner.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"carlharris" wrote in message
...

I have a spreadsheet and I want to have ages in a YY: MM format (excel
doesnt like that, any help would be great). eg. 11:08 is 11 years and 8
months.

I will have an actual age for every entry and then a reading age in the
same format for every entry. I will then calculate the difference and
put them in order of the highest difference.

I basically need to know the formula for the format I want to use as my
efforts have not come to fruition as yet!

Thank you in advance, this is a great little community by the looks of
it!

Carl


--
carlharris
------------------------------------------------------------------------
carlharris's Profile: http://www.excelforum.com/member.php...o&userid=27752
View this thread: http://www.excelforum.com/showthread...hreadid=472610



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
Spreadsheet Won't Calculate Scott Excel Discussion (Misc queries) 0 September 29th 05 05:37 PM
How can I calculate Vacation Time earned based on length of emplo. Kim Excel Discussion (Misc queries) 2 March 15th 05 08:04 PM
calculate date differences in years and months Joyce Excel Worksheet Functions 1 March 14th 05 05:18 PM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM
How do you calculate the nth root of a number in Excel 2003? William Excel Worksheet Functions 2 November 17th 04 04:19 PM


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