Formula to show sum of each group

ShadowLady17

New Member
Joined
May 19, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm trying to do a formula to show the totals of each group based on different criteria that could possibly change.

For example, with the below data I'd want in a separate spreadsheet showing the two subtotals (342.88, 138.28 etc) but these subtotals are based on column B(4141, 4142 etc) but they won't always be that, next month they could be 4132 or something so I can't reference the specific ones shown.

ccc4141ccc
6.99​
ccc
40​
ccc
7.5​
ccc
79.96​
ccc
8.6​
ccc
55.9​
ccc
34.98​
ccc
69.96​
ccc
38.99​
4141 Total
342.88
4142ccc
5.7​
ccc
5.18​
ccc
50​
ccc
64.5​
ccc
12.9​
4142 Total
138.28
mmm4116mmm
299​
mmm
100​
mmm
100.94​
4116 Total
499.94

So I'd want the worksheet to look like this:

30.10.2022​
2002304141
342.88​
ccc1210ACCGAGJ_GPC
30.10.2022​
2002304142
138.28​
ccc1210ACCGAGJ_GPC
30.10.2022​
2002304116
499.94​
mmm1210ACCGAGJ_GPC

But column C won't always be that specific number, so I need to sum the total based on column H (cccc....) and C but C will have changing criteria.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You have data that is in the mocked up solution that is not in the source data. How do you expect us to figure those items out? Give us a realistic source data. Please use XL2BB to upload your data.
 
Upvote 0

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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