Sumproduct or something similar

Sunvisor

Board Regular
Joined
Oct 9, 2009
Messages
233
I have to find a row that has two specific matching criteria, the the row has the two matching criteria I need for it to return the value in column A

lets say I need to find a row where Column B serial number is ABC123 and Column C price is 43.09. With the row that has this matching criteria I need the value in Column A.


Thank you for any help!!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I have to find a row that has two specific matching criteria, the the row has the two matching criteria I need for it to return the value in column A

lets say I need to find a row where Column B serial number is ABC123 and Column C price is 43.09. With the row that has this matching criteria I need the value in Column A.


Thank you for any help!!
Try an array formula** like this...

Use cells to hold the criteria:
  • E2 = ABC123
  • F2 = 43.09
=INDEX(A2:A100,MATCH(1,IF(B2:B100=E2,IF(C2:C100=F2,1)),0))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
 
Upvote 0
Perhaps an array-entered INDEX/MATCH formula?

=INDEX(A1:A1000,MATCH(1,IF(B1:B1000="ABC123",IF(C1:C1000=43.09,1,"")),0))

Confirm entry with CTRL+SHIFT+ENTER to enter as an array formula. You will know it is entered properly when you see {brackets} around the formula.
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,943
Latest member
Newbie4296

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