+ Reply to Thread
Results 1 to 4 of 4

Calculating Birthday's in One Cell

  1. #1
    Registered User
    Join Date
    07-08-2004
    Posts
    5

    Calculating Birthday's in One Cell

    1. Let's say I wanted to calculate someone's age in years in one cell how would I do this?

    2. Let's say employee A has been with the company since 5/16/2006. Is there a way I can have the time to present show in the cell as Years Months and Days? I would also like this to be all in one cell.

    Essentially I am trying to avoid having to clutter up the sheet with one cell with the date and than another cell with the equation.

    Thank you in advance for your help!

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    have a look at
    http://www.cpearson.com/excel/datedif.aspx
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    07-08-2004
    Posts
    5
    I tried the date difference function and all it gives me is a #NAME error. Any suggestions?

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Did you try something like this

    =DATEDIF("28/12/1990",TODAY(),"y")&" years "&DATEDIF("28/12/1990",TODAY(),"ym")&" months "&DATEDIF("28/12/1990",TODAY(),"md")&" days"

    Depending on your country & date format you may need to reverse the day & month

+ Reply to Thread

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.6.0 RC 1