Find SUM by group

djl0525

Well-known Member
Joined
Dec 11, 2004
Messages
1,240
Hi...

In column A, I have numbers like

1
1
2
2
2
3
3

I call these groups. Group 1 contains two rows. Group 2 contains 3 rows. Group 3 contains 2 rows... and so on.

In column F, I need to sum the values that are in column E for each group as indicated in col A.

If group 1 adds up to 100, column F will say

100
100

If group 2 adds up to 350, column F will say

350
350
350

...and so on.

Can someone tell me the formula to add column E by group, please?

Thanks,
DJ
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Assuming your data starts in A1 put this in F1
=SUMIF(A$1:A$7,A1,E$1:E$7)
changing the values in red to match your range
 
Upvote 0
Not sure to have a clear understanding of the need but perhaps try:
F6 = A6+A1
Copy and paste down as needed
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,226
Messages
6,123,734
Members
449,116
Latest member
alexlomt

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