Can I get some help with this SUMIFS Formula?

Peter h

Active Member
Joined
Dec 8, 2015
Messages
417
A
B
C
D
1
Red
5
Red
1
2
Yellow
3
Yellow
3
3
Blue
7
Red
2
4
Blue
4
5
Red
2
6
Blue
3

<tbody>
</tbody>
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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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
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.

Ahhh... Thanks for the explanation. Good to know for the future.
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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