matching for multiple columns

blott5fm

New Member
Joined
Feb 6, 2015
Messages
39
I have the formula =1-SUMIFS(C:C,A:A,F1)/H1. I need a formula that will not only check for a match in cell F1 but also G1, H1 and I1. I tried =1-SUMIFS(C:C,A:A,F1:I1)/H1 but that doesn't work. Any help is greatly appreciated.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
SUMIFS cannot handle arrays in the criteria argument. SUMPRODUCT is a solution. {Note that selecting the entire Columns will slow down recalc.)


Excel 2012
ABCDEFGHIJ
1dog5dogbeefvenisonveal59
2venison10
3chicken17
4beef19
5fish22
6veal25
Sheet41
Cell Formulas
RangeFormula
J1=SUMPRODUCT((A:A=F1)+(A:A=G1)+(A:A=H1)+(A:A=I1),C:C)
 
Upvote 0
Actually, this is even easier, cell J1 =SUMPRODUCT((A:A=F1:I1)*C:C)
 
Upvote 0

Forum statistics

Threads
1,203,064
Messages
6,053,318
Members
444,653
Latest member
Curdood

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