+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    08-07-2008
    Location
    England
    Posts
    3

    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

  2. #2
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,134
    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.

  3. #3
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,605

    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
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    08-07-2008
    Location
    England
    Posts
    3

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0