+ Reply to Thread
Results 1 to 7 of 7

Multiple nested sum and blanks or zero

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Multiple nested sum and blanks or zero

    I am struggling getting my Columns O and P to calculate correctly. In short, I need the "TOTAL" columns (G, K, O, and P) to increase each year from the previous based on what the current is (Column B) and the "Total Projection in Column P to return the highest value essentially. My error is because if certain cells (Columns D, E, H, I, L and M) are blank or zero, the totals keep messing up. What am I missing here? Example attached. Any help is greatly appreciated as always!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,014

    Re: Multiple nested sum and blanks or zero

    Not sure why you have such a complicated formula for your Totals - For example, column F accounts for the values in D and E, so G could just be B+F, like this in G5:

    =B5+F5

    And the same for all the other totals:
    K5: =G5 + J5
    O5: =K5 + N5
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Multiple nested sum and blanks or zero

    Hi Bernie, the reason is if they are blanks or zeros then your proposal would show the incorrect math. I.e. if the prior year has zero power, then the total of the next year would not be culminative. Does that make sense?

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,014

    Re: Multiple nested sum and blanks or zero

    You did not show the values that you actually wanted so I just guessed - if you repost with 'before' and 'desired' tables showing what you want........

  5. #5
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Multiple nested sum and blanks or zero

    I've attached a version like you mentioned with the before and desired, but its so hard to include each scenario where if one of the inputs (D, E, H, I, L, and M) are either a blank or a zero that it adds up correctly for that year, and ultimately the end Total Projection. Hopefully the new version helps to try and clarify this some....
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,014

    Re: Multiple nested sum and blanks or zero

    In your desired section, you still have your formulas - I would have expected values, so your 'desired' section seems inconsistent. I don't understand why K13 increments from the base 'current power' but O12 does not.

  7. #7
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Multiple nested sum and blanks or zero

    I can't get the formulas to all work, but the totals are the values I am trying to arrive at. K13 increments from the current power (B13) because there are no values in D13 and E13. Then because there is a value in M13...the total you see in O12, will key off the prior year total in K13.

+ 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. Replies: 2
    Last Post: 02-22-2018, 06:27 PM
  2. BLANKS (Not Really Blanks) AND Rearrange ignoring blanks
    By shivspatil in forum Excel General
    Replies: 4
    Last Post: 02-02-2018, 08:28 AM
  3. Replies: 1
    Last Post: 07-05-2016, 06:35 AM
  4. Return non blanks from multiple columns in multiple sheets
    By msj12345 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2015, 02:31 AM
  5. Replies: 8
    Last Post: 12-31-2014, 11:48 AM
  6. Nested IF statement involving BLANKS
    By Lmsloman in forum Excel General
    Replies: 2
    Last Post: 07-02-2010, 03:29 PM
  7. [SOLVED] Skip multiple blanks
    By Pat in forum Excel General
    Replies: 1
    Last Post: 02-05-2005, 05:06 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