sum range of cells given certain criteria

jbenfleming

New Member
Joined
Mar 30, 2017
Messages
34
You probably read this title and thought "=sumif, dummy". However this dummy can't seem to get it to work nicely in this case. Would love some assistance. To the issue: First off, I know I could do this via VBA, but I would love to be able to accomplish it with simple formulas if possible. I have 4 columns below

[TABLE="width: 350"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]VALUE[/TD]
[TD]NAME(NO REPEAT)[/TD]
[TD]VALUE(SUM)[/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CAT[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SUE[/TD]
[TD]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JAN[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CAT[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I would like to have the third column to have the names listed with no repeats and the fourth column to have the sum for each name. I'm thinking that the cells in red would be returned via formula. Any help would be greatly appreciated.

[TABLE="width: 350"]
<tbody>[TR]
[/TR]
[TR]
[TD]NAME[/TD]
[TD]VALUE[/TD]
[TD]NAME(NO REPEAT)[/TD]
[TD]VALUE(SUM)[/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD]5[/TD]
[TD]JIM[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]CAT[/TD]
[TD]1[/TD]
[TD]CAT[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]SUE[/TD]
[TD]8[/TD]
[TD]SUE[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]JIM[/TD]
[TD]9[/TD]
[TD]JAN[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]JAN[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CAT[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Put this CSE formula in C1, and then drag down
=INDEX(A:A, LARGE((MATCH($A$1:$A$6,A:A,0)=ROW($A$1:$A$6))*ROW($A$1:$A$6),ROWS($1:1)),1)

Column D is, as you suspected, SUMIFDUMMY. :)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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