+ Reply to Thread
Results 1 to 8 of 8

Gap calculation (to be calculated only up to last month)

  1. #1
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    431

    Gap calculation (to be calculated only up to last month)

    Hi,

    I need a formula to be calculate the gap that is to be calculated only up to last month.

    Pl. find attached an excel file with necessary info.

    Pl. help.

    Regards,
    Nagesh.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,760

    Re: Gap calculation (to be calculated only up to last month)

    In E5 copied down:

    =IF(MONTH(TODAY())>MONTH(B5),D5-C5,"")

    In F5 copied down:

    =IF(E5="","",SUM($E$5:E5))
    Last edited by AliGW; 04-06-2017 at 03:46 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Re: Gap calculation (to be calculated only up to last month)

    Hi Nagesh,

    try this attached excel.
    Attached Files Attached Files
    Manikandan Arumugam
    Excel Learner

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,760

    Re: Gap calculation (to be calculated only up to last month)

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, Manikandan, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    By the way, your solution does not do what was requested by the OP.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Gap calculation (to be calculated only up to last month)

    Dear Ali Mam : In "F" column amount calculate cumulative amount.
    Regarding :
    PHP Code: 
    In F5 copied down:=IF(E5="","",E5


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,760

    Re: Gap calculation (to be calculated only up to last month)

    Quote Originally Posted by avk View Post
    Dear Ali Mam : In "F" column amount calculate cumulative amount.
    Regarding :
    PHP Code: 
    In F5 copied down:=IF(E5="","",E5
    Ah, yes! Thanks. Should be this:

    =IF(E5="","",SUM($E$5:E5))

  7. #7
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Re: Gap calculation (to be calculated only up to last month)

    Sorry for the inconvenience caused Ali. I misunderstood the question.

    Thanks for your advice. Since, am new to the forum, your advice will be helpful from the experts like you. Going forward, I ensure to follow the above-mentioned things.

  8. #8
    Forum Contributor
    Join Date
    02-15-2012
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2019
    Posts
    431

    Re: Gap calculation (to be calculated only up to last month)

    Thanks a lot Ms. Ali, its working great.

    Thanks Manikandan & avk too.

+ 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. month to date calculation based on month selection from list box
    By jamaludheen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-06-2017, 06:00 AM
  2. [SOLVED] Calculation of days per month for dates beginning in one month and ending in another month
    By Fahrettin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2015, 04:52 PM
  3. COUNTIF calculation with Age calculated from DOB
    By benjii19 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-14-2015, 12:11 PM
  4. Replies: 0
    Last Post: 05-17-2014, 10:18 PM
  5. Replies: 0
    Last Post: 10-24-2013, 10:59 AM
  6. Replies: 2
    Last Post: 03-06-2009, 11:49 AM
  7. Calculated Reimbursement for total month
    By Cindylu3 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-14-2007, 12:18 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