+ Reply to Thread
Results 1 to 11 of 11

How to find subtotals in variable positions.

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    How to find subtotals in variable positions.

    I have a series of columns of numbers which need subtotalling. The places to subtotal are blank cells. There is is always a constant number of these but they can be at any point in the column. I am looking for a formula I can use in an adjacent column.
    I hope the attached worksheet will make this clearer.
    John
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to find subtotals in variable positions.

    In G4 copied down
    =IF(F4="",SUM(F$4:F4)-SUM(G$3:G3),"")

  3. #3
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    491

    Re: How to find subtotals in variable positions.

    1. Are you sure your formulas make sense: the totals are different in each scenario: first time not including blank cell, second time including blank cell, third time omitting the first value??? This looks like inconsistent logic to me.
    2. Once clarified, I can have a look. But overall I would advise to change the layout of your data. It appears to me you need overly complex formulas because your data is arranged in a bad way.

    Regards

  4. #4
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    491

    Re: How to find subtotals in variable positions.

    @J_Southern: See whether this does what you intend to do.

    I also tried to provide better data layout at the left which gives much easier ways to aggregate.
    It's more in the structure of a database. Sorry, I am quite picky about these things.

    Cheers
    Attached Files Attached Files
    Last edited by RaulSerg; 05-24-2020 at 10:57 AM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to find subtotals in variable positions.

    @RaulSerg

    Since you got answers of several forummembers it is good to add to whom you replying.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to find subtotals in variable positions.

    @oeldere

    RaulSerg is not the OP, but a helper. If he/she was the OP then I would have been the only helper & so no need to specify who they are replying to.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to find subtotals in variable positions.

    @fluff13

    Your correct wrong treath.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to find subtotals in variable positions.

    Easily done.

  9. #9
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: How to find subtotals in variable positions.

    @fluff, RaulSerg, oeldere
    Thankyou! With a small change to the data list and the use of SUMIF you have enabled me to solve my problem.
    I hope that a few Reputation points and a "Thread Solved" will calm the little storm that I seem to have provoked. Ill never understand "Your correct wrong treath" or that it is evidently "Easily done"
    Regards
    John

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to find subtotals in variable positions.

    You're welcome & thanks for the feedback.

    There was no "little storm" oeldere, simply said that the post i was querying had been made to the wrong thread. Which is easily done if you have multiple tabs running.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to find subtotals in variable positions.

    @j_Southern

    There was no "little storm", to my point of view, and fluff13 understand that totaly.

+ 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. [SOLVED] Find subtotals for three separate items and place all subtotals at bottom of all the data
    By skylinekiller in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-09-2019, 09:22 AM
  2. [SOLVED] Locate the 25 positions of the letters of the 4 blocks Each block has 25 positions
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 50
    Last Post: 12-22-2017, 12:46 PM
  3. Best Way to Sum Values in Variable Positions Across Multiple Sheets?
    By tb813 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-14-2014, 09:23 AM
  4. [SOLVED] Numerical values (in variable positions) associated to text cells
    By eloureiro in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2012, 07:02 PM
  5. [SOLVED] reference a cell a variable number of positions away
    By kamelkid2 in forum Excel General
    Replies: 2
    Last Post: 05-22-2012, 01:07 PM
  6. Excel 2003 multilevel subtotals in wrong positions
    By JMA7450 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-05-2006, 05:20 PM
  7. Subtotals in wrong positions excel 2003
    By Charles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2006, 08:15 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