Sumifs with multiple cell references as criteria

spoony40

New Member
Joined
Feb 27, 2015
Messages
17
Hi,

I can get this formula to work:

=SUMIFS(A:A, B:B, D1, C:C, D2:D3)

It uses criteria in cell D2 and D3. But how do i get it to reference a cell not in order like D2 OR D10

=SUMIFS(A:A, B:B, D1, C:C, (D2,D10)) gives zero value and not working.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
My original formula is not working:

=SUMIFS(A:A, B:B, D1, C:C, D2:D3)

It only takes D3 as the criteria not D2. When i use your formula, theres a popup saying error "There's a problem with this formula etc"
 
Upvote 0
Do you have any formula errors in columns A, B, or C?

No formulas in columns, its all raw data.

=SUMIFS(A:A,B:B,D1,C:C,D2) = 5

=SUM(SUMIFS(A:A,B:B,D1,C:C,{D2,D3})) = gives popup error

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]12[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD]a[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]b[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]a[/TD]
[TD]c[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]a[/TD]
[TD]d[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]a[/TD]
[TD]a[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]c[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]d[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
Try:
The two SUMIFS will probably process quicker if using whole columns as a range. You would be better off to limit your ranges to something like A1:A5000.
Excel Workbook
ABCDEF
112aaa
22abb10
33acc
44ad10
53ab
65aa
72ac
81d
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,185
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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