1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Computing Dates in Excel

Discussion in 'Business Applications' started by edbyrd, Jul 13, 2003.

Thread Status:
Not open for further replies.
  1. edbyrd

    edbyrd Thread Starter

    Joined:
    Jul 12, 2003
    Messages:
    19
    Does Excel (version 9.0) have a feature which will allow me to compute various day/month/year time lapses? For instance can I compute the number of months between Oct. 1, 2003 and September 31, 2013? Or if I want to determine what day it is 25 years from today? I can do this on my handheld, but would like to design an Excel formula for it. Any help would be appreciated.
     
  2. putasolution

    putasolution

    Joined:
    Mar 20, 2003
    Messages:
    4,823
    Use the datedif function

    i.e. =DATEDIF(Date1,Date2,"Interval")

    Where
    Date1 is Start Date
    Date2 is the end date
    Interval is one of the following: You must use the inverted commas

    "m" Months
    The number of complete months between Date1 and Date2.

    "d" Days
    The number of days between Date1 and Date2.

    "y" Years The number of complete years between Date1 and Date2.

    "ym" Months Excluding Year
    The number of months between Date1 and Date2, as if Date1 and Date2 were in the same year.

    "yd" Days Excluding Years
    The number of days between Date1 and Date2, as if Date1 and Date2 were in the same year.

    "md" Days Excluding Months And Years
    The number of days between Date1 and Date2, as if Date1 and Date2 were in the same month and the same year.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/146629

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice