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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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