Formula to Sum a Group based on Blank Spaces between Groups

secrestj

New Member
Joined
Feb 18, 2005
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Forum members: I have exhausted my internet/forum searches and AI formula assistance on my issue and turning to you. Thank you for your help in advance. I am looking for formula and not VBA. I am using Office 365.

I want to have a formula that I can drag down rows (in Column C) that will return the sum of a group of another column (Column B) based on a blank cell between the groups (Column B). The groups vary in size (my example shows 3 and 4 categories), with some having 2 to 7 categories within a grouping. I have oversimplified then table for the Forum Members use. I will change the formula as necessary to differing columns or changes in formula operations (e.g. sum to percentage calculations), but I need to BASE formula to start with. I have tried numerous ways and failed. Also, looking for the formula to be in a single cell and not rely on a 'helper column'.

For the cells in Column C between totals, I want it to return blank (or ""), as I want to be able to drop the formula into any spreadsheet provided to me and put the formula at the top and drag to obtain quick results to report on.

I hope this is not too much a lift and the members can help. Thank you again. See sample table below.
 

Attachments

  • Screenshot 2025-01-17 at 1.24.49 PM.png
    Screenshot 2025-01-17 at 1.24.49 PM.png
    22.5 KB · Views: 17
As this is a totally different question, it needs a new thread. Thanks
Thank you. It was a more detailed question, as I was not able to adapt the provided solutions to my needs. Based on your response, I will start a new thread. Thank you for your assistance through this process.
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,226,013
Messages
6,188,421
Members
453,473
Latest member
bbugs73

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top