+ Reply to Thread
Results 1 to 3 of 3

Thread: cumulative monthly figures - whats the best approach??

  1. #1
    Registered User
    Join Date
    02-21-2008
    Posts
    5

    cumulative monthly figures - whats the best approach??

    I'm quite new to excel and am trying to modify a spreadsheet that I have to use at work so that it will calculate the value of overdue invoices each month. I've created a cell called current month which is used as the startpoint.

    the logic is as follows:

    current month =May - overdue amount any value in the due colume in April
    current month=June - overdue amount any value in the due columns of April and May.
    and so on until March of the following year

    I've tried nested IF forumulas but this restricts me to 7 nested IF statements but I need much more than 7 (as there are 12 months in the year) and have played with sum if formula but I'm too much of a novice to work out a workaround that lets me exceed the 7 nested function rule.....

    anyone got any suggestions as to the the best way to progress this? I've attached the file to demonstrate what I'm trying to do....can anything help..
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-26-2008
    Posts
    2

    running totals

    I keep a running totla of various variables in my pay worksheet
    for example accumulated gratuities for the year

    =sum(pay1:pay2!a1)

    the sum of the amount in cell a1 on sheet pay1 and the sum of that cell in pay2 plus that cell in pay1 and so on.
    My problem is trying to get the sheet name to change automatically without manually changing it everytime I create a new pay period

    I have used the formula a number of times in each sheet and is a pain going back to change it.

  3. #3
    Forum Guru mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2007/2010
    Posts
    3,004
    Have a look at the attached. It uses a user defined function to calculate the cumulative sum. You can see the code by hitting alt F11.

    It's driven from the value of the month that you enter which is then looked up in the header row to determine which column to work backwards from.
    Attached Files Attached Files
    Last edited by mrice; 02-27-2008 at 04:22 AM.
    Martin

    Eighty Twenty Spreadsheet Automation http://homepage.ntlworld.com/martin.rice1/ for all your Excel customisation and consulting needs.

    If my solution has saved you time and/or money, please consider donating to Cancer Research UK.

+ 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.2.0