+ Reply to Thread
Results 1 to 4 of 4

Sales vs Target Spreadsheet RUNNING SUBTOTAL fix

  1. #1
    Registered User
    Join Date
    07-29-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    17

    Sales vs Target Spreadsheet RUNNING SUBTOTAL fix

    Hi People,

    Does anyone know a good formula fix to solve the problem in the spreadsheet attached. Basically the spreadsheet displays sales and targets for 6 financial periods. The targets for the full 6 periods are pre-set and loaded into the file, and the sales figures are loaded into the file as they become available. The issue us that the ALL PERIODS columns displaying the SUM of the sales and target is distorted because the full periods targets are present, but not the sales as yet, and consequently the % column is incorrect. Obviously I could manually alter the ALL PERIODS sales / target formulas to only include the completed periods, but I would like to know a formula that gets around this, as in reality I would need to make hundreds of changes each time.

    I was thinking of using the COUNT function to count the number of nonblank Sales cells, and then somehow tell the ALL PERIODS target column to only SUM the corresponding number of target cells, but this is where I got stuck.

    **UPDATE - I just figured out that I can use the COUNT function as outlined above, and then use the CHOOSE function to select the argument which SUMS up the relevant number of target cells. This works fine, but is a rather convoluted formula, and not overly quick to set dozens of times, so if anyone has a better method I would love to hear it! **

    Any help much appreciated as always

    James
    Attached Files Attached Files
    Last edited by JayMW; 08-05-2009 at 06:32 AM. Reason: Update

  2. #2
    Registered User
    Join Date
    08-04-2009
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: Sales vs Target Spreadsheet RUNNING SUBTOTAL fix

    I rearranged the columns a bit - formulas are in grey. Basically a count and offset solve your issue.

    M
    Attached Files Attached Files

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sales vs Target Spreadsheet RUNNING SUBTOTAL fix

    One approach:

    O3: =SUMPRODUCT(--(MOD(COLUMN($C3:$M3),2)=1),--ISNUMBER($B3:$L3),$C3:$M3)
    copied down

  4. #4
    Registered User
    Join Date
    08-04-2009
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: Sales vs Target Spreadsheet RUNNING SUBTOTAL fix

    Very elegant solution- much better than what I posted.

    Quote Originally Posted by DonkeyOte View Post
    One approach:

    O3: =SUMPRODUCT(--(MOD(COLUMN($C3:$M3),2)=1),--ISNUMBER($B3:$L3),$C3:$M3)
    copied down

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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