Can I get some help with this SUMIFS Formula?

Peter h

Active Member
Joined
Dec 8, 2015
Messages
417
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Red
[/TD]
[TD]5
[/TD]
[TD]Red
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Yellow
[/TD]
[TD]3
[/TD]
[TD]Yellow
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Blue
[/TD]
[TD]7
[/TD]
[TD]Red
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Blue
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Red
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Blue
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to get this SUMIFS formula to work, but I can't seem to figure it out. I'd love a bit of guidance. Thanks.

The table shows the results I'm trying to achieve. Here's what I tried, but doesn't work:

=SUMIFS($D$1:$D$6,$C:$C,A1)

Edit: The formula would be in column "B" and dragged down for each item in column "A".
 
Last edited:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
The reason your first one failed is the sum range and the criteria range(s) need to be the same length. D1:D6 and C:C are not the same length in terms of number of cells.
 
Upvote 0
While SUMIFS would return #VALUE ! when the ranges it reference are not equally sized, the old SUMIF goes ahead and calculates what it can.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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