SUMIF across multiple columns and one row

ryxk1

New Member
Joined
Jul 26, 2018
Messages
5
I need to sum where criteria is matched in 2 columns and 1 row:


[TABLE="width: 320"]
<tbody>[TR]
[TD="width: 64"]O[/TD]
[TD="width: 64"]P[/TD]
[TD="width: 64"]2016[/TD]
[TD="width: 64"]2017[/TD]
[TD="width: 64"]2018[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="bgcolor: #E7E6E6"]*[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]1[/TD]
[TD="bgcolor: transparent, align: right"]2[/TD]
[TD="bgcolor: transparent, align: right"]3[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]*[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]5[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>


Using the example above, I need to sum if column O matches ‘A’, column P matches ‘*’ and the first row matches ‘2017’. So the answer I should get should be 4+3=7.
<strike></strike>
 
I agree, but if "*" is all that can be in the column I think it should be okay, or if possible, I would not use the wildcard character "*" and replace it with something else.

Agree 100% with the part in blue!

M.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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