ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Usenet Groups > Excel Charting

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-11-2008, 01:41 PM
SadieN SadieN is offline
Registered User
 
Join Date: 07 Aug 2008
Location: England
Posts: 3
SadieN is on a distinguished road
formatting for ages NOT dates

I am trying to create a chart which displays reading ages of pupils (in years and months). All attempts have failed. Obviously the format I am using for the data is based on 10. I want a scale that goes to 12 ( eg 04:10, 04:11, 5:00 and 05:01). There must be a way! Please can someone help.
SadieN
Reply With Quote
  #2  
Old 08-11-2008, 01:50 PM
shg's Avatar
shg shg is offline
Forum Moderator
 
Join Date: 21 Jun 2007
Location: Dallas, Texas
Posts: 6,160
shg will become famous soon enough shg will become famous soon enough
If A1 contains a birth date, then

=DOLLARFR(DATEDIF(A1,TODAY(),"m")/12, 12)

... returns x.01 to x.11, where x is the age in years.

Requires the Analysis Toolpak add-in.
Reply With Quote
  #3  
Old 08-11-2008, 02:20 PM
Ron Coderre's Avatar
Ron Coderre Ron Coderre is online now
Cheeky Forum Moderator
 
Join Date: 22 Mar 2005
Location: Massachusetts
Posts: 2,073
Ron Coderre will become famous soon enough Ron Coderre will become famous soon enough
Send a message via Yahoo to Ron Coderre
formatting for ages NOT dates

If you want to build a sequential list of years and months,
but formatted like time (eg 4:10, 4:11, 5:00, 5:01...etc)
where 4:10 represents 4 years and 10 months...
Try this:

A1: (a start time......eg 4:00....translated as 4 years and 0 months)
This formula calculates the next sequential "year:month" value:
Code:
B1: =A1+TIME(0,IF(MOD(--TEXT(A1,"[M]"),60)=11,60-11,1),0)
Copy that formula across as far as you need.

Note: you must format those values as Time.

Is that something you can work with?
__________________
Regards,

Ron
Microsoft MVP (Excel)

Click here to see the Forum Rules
Reply With Quote
  #4  
Old 08-14-2008, 06:11 AM
SadieN SadieN is offline
Registered User
 
Join Date: 07 Aug 2008
Location: England
Posts: 3
SadieN is on a distinguished road
Thank you

Thank you shg and Ron C. I wasn't sure what to do with shg@s formula or the add-in but I did manage to get the ages with Ron's suggestion.

Many thanks to you both.

SadieN
Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 04:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0