+ Reply to Thread
Results 1 to 8 of 8

Formula for Subtracting Dates to figure out number of months

  1. #1
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Formula for Subtracting Dates to figure out number of months

    Hello,

    How would you go about doing 03/31/2014 minus today's date in order to get the number of months in between those dates?

    Thanks!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Subtracting Dates to figure out number of months

    We need a clearer definition of how to count months (criteria for a month to be included in the count)

    Say you have

    3/15/2013 minus 2/27/2013 ???
    4/20/2013 minus 2/07/2013 ???

    etc..

    Basically, 2 questions.
    Does it need to be an ENTIRE month for it to be included, or just at least 1 day from a month to be included ?
    Are the beginning and/or ending months included in the count?

  3. #3
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula for Subtracting Dates to figure out number of months

    Sorry, I see what you're saying now.

    I need number of days between two dates, but reflected in months.

    So for example, between today (12/2/2013) and 03/31/2014, there would be 120 days, which translates into 4 months.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Subtracting Dates to figure out number of months

    So more specifically, how many 30 day periods...

    You could just do
    =(A1-TODAY()+1)/30

    A1 = 3/31/2014
    The +1 is because a simple A-B will not include the begin date (3/31/2014 minus 12/2/2013 = 119, not 120)

  5. #5
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula for Subtracting Dates to figure out number of months

    Thanks a lot man!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula for Subtracting Dates to figure out number of months

    You're welcome.

  7. #7
    Registered User
    Join Date
    11-20-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Formula for Subtracting Dates to figure out number of months

    You could also do =DATEDIF(A1,B1,"M")

  8. #8
    Registered User
    Join Date
    12-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula for Subtracting Dates to figure out number of months

    Hey I wanted to get your advice again as I am not sure if this is working properly.

    I have the following columns:

    Balance March 31, 2014 (H4)- Expenses per Month (O4)

    So I want to be able to see how many months until funds reach zero from today, based on that projected March 31 2014 balance.

    Right now I have it complicated, where I am getting the number of months until zero from March 31, but then adding the months from today until March 31.

    This is what I have:

    =IF(O4=0,"",((H4/O4)+((YEAR(TODAY())-YEAR($E$117))*12+MONTH(TODAY())-MONTH($E$117))+($E$117-TODAY()+1)/30))

    E117 is the March 31, 2014 date.

    Am I doing this right?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Split a figure by a given number of months in a finanacial years
    By SKirkaldy in forum Excel General
    Replies: 3
    Last Post: 09-11-2013, 01:03 AM
  2. Subtracting Dates and showing the answer in months
    By mitch1976 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2013, 02:57 PM
  3. [SOLVED] Formula for counting number of months between 2 dates
    By yeosh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2013, 06:35 PM
  4. Subtracting Dates (months)
    By sarahwilson1000 in forum Excel General
    Replies: 1
    Last Post: 02-23-2011, 05:56 PM
  5. figure out no of months given two dates
    By associates in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2009, 12:46 AM

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