Sumifs{}

volaxe

New Member
Joined
Mar 22, 2018
Messages
4
Hi guys, im trying to sum the amount im the chart below but i believe the {} is wrong that it only reflects the 1st criteria. Cell C5
=sum(sumifs(I:I,H:H,{"*P77*","*M41P*","*GO57*"},G:G,B5))
Scratching head.. thank you guys!

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
ABCDEFGHI
2April Sales4/1/2018GO578,000.00
3P77M41PGO574/1/2018GO572,000.00
4025720100004/1/2018M41P20,000.00
54/1/201804/1/2018M41P5,700.00
64/2/201804/1/2018M41P20.00

<colgroup><col style="width: 77px"><col width="77"><col width="100"><col width="100"><col width="100"><col width="20"><col width="52"><col width="149"><col width="78"></colgroup><tbody>
</tbody>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Welcome to Mr Excel forum

Not sure what you need.
Your formula, =SUM(SUMIFS(I:I,H:H,{"*P77*","*M41P*","*GO57*"},G:G,B5)), returned 35720.
It seems correct to me.

M.
 
Upvote 0
Somehow in my sheet it only reflects result of "*P77*" and ignores the other 2 criteria. in my sheet the result for the formula is 0 when
 
Upvote 0
Double click cell C5, and proceed with Ctrl+shift+enter, not just press enter.

I mean double click C5, and hold Ctrl+shift, press enter while not release Ctrl and Shift.
 
Upvote 0
Google Sheets do not allow expressing multiple OR conditions using array constants in SumIfs (while it does in SumIf).

Invoke instead:

Either...

=sumproduct(I:I,--isnumber(match(H:H,$C$3:$E$3,0)),--(G:G=B5))

Or...

=sumproduct(I:I,--isnumber(match(H:H,{"P77","M41P","GO57"},0)),--(G:G=B5))

You don't need wildcard, given your data.

Note. This problem does not arise in Excel (hence Marcelo's reply).
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,984
Members
449,058
Latest member
oculus

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