+ Reply to Thread
Results 1 to 5 of 5

Date/time passed formula

  1. #1
    Registered User
    Join Date
    03-12-2008
    Posts
    8

    Date/time passed formula

    I have a cell with a date in it, ie 25/08/2007, and I would like the next cell to display how much time has passed from this date to today, ie 7 months 1 day.

    I can't for the life of me fathom out how to do this. Any ideas would be very gratefully accepted.

    Thanks
    Melanie

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Hane a look at
    http://www.cpearson.com/Excel/datedif.aspx

    If require just months & days use a modified version of the Calculating Age formula

    =DATEDIF(A1,TODAY(),"ym")&" months "&DATEDIF(A1,TODAY(),"md")&" days"
    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
    03-12-2008
    Posts
    8
    Thanks for your help. I've tried it, and changed the cell references to the relevant cells in my sheet and it returns a #NUM! error. Any ideas?

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I do not know what would cause the #NUM! error.

    If the formula refeneces a non numeric value I get a #VALUE! error

    I have not been able to duplucate your #NUM! error.

  5. #5
    Registered User
    Join Date
    03-12-2008
    Posts
    8
    Hi

    I've got it to work by using the following formula:

    =DATEDIF(E57,$G$1,"m")

    It only returns the #NUM! error when items aren't yet out of date.

    Mel

+ 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