+ Reply to Thread
Results 1 to 4 of 4

Calculating how many months left.

  1. #1
    Registered User
    Join Date
    08-27-2013
    Location
    philippines
    MS-Off Ver
    Excel 2003
    Posts
    23

    Calculating how many months left.

    Hi guys

    Hope you can help

    what i wanted is a function that would automatically calculate how many months left to get to that month.


    say for example

    our target month is June 2015

    1) May 3 2015 - so to get to June 30 2015 the answer is = 1 month
    2) December 8 2014 = 6 months
    3) June 23 2014 - 12 months

    i dont care about days. even if its 29th of the month.

    Thanks

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Calculating how many months left.

    Hi,

    I have solved please a have look in attachment.
    Solved Month.xlsx
    If this is solved please add the reputation.
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,190

    Re: Calculating how many months left.

    E1 is the answer:

    a1 = 7/7/15
    b2 = target date
    c1 = =YEAR(A1) & TEXT(MONTH(A1),"00")
    d1 = =YEAR(B1) & TEXT(MONTH(B1),"00")
    e1 = =C1-D1

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Calculating how many months left.

    With
    A1: a target date......30-Jun-2015
    and
    A2: a start date.....03-May-2015

    This formula counts the number of whole months between the start date and the target date
    Please Login or Register  to view this content.
    Here are some sample results:
    03-May-2015......1 Month
    08-Dec-2014.......6 Months
    23-Jun-2014.......12 Months



    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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. Calculating Months/Yr including partial months
    By run2win17 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-24-2017, 10:46 AM
  2. VBA Loop to Look up using Left and Right Function for months
    By bkeat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 09:30 AM
  3. [SOLVED] Average a number into months left in year
    By jgryctz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-14-2013, 02:50 PM
  4. Code to Shift Left and Right the months captured in a chart
    By gautamacharya in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2012, 01:24 PM
  5. Working days left in the month compared to previous months
    By qwopzxnm in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-24-2005, 03:00 PM

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