+ Reply to Thread
Results 1 to 4 of 4

I want to subtract 2 dates and display the result as months

Hybrid View

  1. #1
    Dave
    Guest

    I want to subtract 2 dates and display the result as months

    I am trying to subtract 2 dates and return the result as number of months.

    I have seen post related to DateDif but whne I use this I get a Name error.

    How do I subtract dates and get number of months?

    Thanks

    Dave



  2. #2
    Nick Hodge
    Guest

    Re: I want to subtract 2 dates and display the result as months

    Dave

    =DATEDIF(A1,B1,"m")

    Works for me

    --
    HTH
    Nick Hodge
    Microsoft MVP - Excel
    Southampton, England
    [email protected]HIS

    "Dave" <[email protected]> wrote in message
    news:[email protected]...
    >I am trying to subtract 2 dates and return the result as number of months.
    >
    > I have seen post related to DateDif but whne I use this I get a Name
    > error.
    >
    > How do I subtract dates and get number of months?
    >
    > Thanks
    >
    > Dave
    >




  3. #3
    Ragdyer
    Guest

    Re: I want to subtract 2 dates and display the result as months

    Start date in A1,
    End date in B1,
    Try this:

    =DATEDIF(A1,B1,"m")

    For an explanation of the function, check out Chip Pearson's web page:

    http://www.cpearson.com/excel/datedif.htm

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Dave" <[email protected]> wrote in message
    news:[email protected]...
    > I am trying to subtract 2 dates and return the result as number of months.
    >
    > I have seen post related to DateDif but whne I use this I get a Name

    error.
    >
    > How do I subtract dates and get number of months?
    >
    > Thanks
    >
    > Dave
    >
    >



  4. #4
    Dave
    Guest

    Re: I want to subtract 2 dates and display the result as months

    Thank you both - this works!


    "Ragdyer" <[email protected]> wrote in message
    news:[email protected]...
    > Start date in A1,
    > End date in B1,
    > Try this:
    >
    > =DATEDIF(A1,B1,"m")
    >
    > For an explanation of the function, check out Chip Pearson's web page:
    >
    > http://www.cpearson.com/excel/datedif.htm
    >
    > --
    > HTH,
    >
    > RD
    >
    > ---------------------------------------------------------------------------
    > Please keep all correspondence within the NewsGroup, so all may benefit !
    > ---------------------------------------------------------------------------
    > "Dave" <[email protected]> wrote in message
    > news:[email protected]...
    >> I am trying to subtract 2 dates and return the result as number of
    >> months.
    >>
    >> I have seen post related to DateDif but whne I use this I get a Name

    > error.
    >>
    >> How do I subtract dates and get number of months?
    >>
    >> Thanks
    >>
    >> Dave
    >>
    >>

    >




+ 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