Searching multiple criteria returning multiple results - listing horizontally?

JamesLH

New Member
Joined
Jun 1, 2020
Messages
1
Hello,

I'm trying to create a formula that compared two criteria and returns all results horizontally. I've got the searching against multiple criteria part, however I'm having trouble returning all matched results horizontally if multiple results are found. Below is my spreadsheet:

1591042935033.png


And here is the formula I've created to search against multiple criteria.

Rich (BB code):
=INDEX($B$1:$B$3398,MATCH(1,(I2=$A$1:$A$3398)*(J2=$C$1:$C$3398),0))

It's comparing values in columns I and J against values in columns A and C and returning the corresponding value in the same row, in column B.

Any help with this would be appreciated!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
With Excel ver. 2010 and above try formula in K2 and copy across.
If you have Excel 365 with the FILTER function then the formula in K4.
It helps to let us know the ver. of Excel you are using.

Book1
ABCDEFGHIJKLM
1PartLotSOCustInvPOItemSOLot 1Lot 2Lot 3
210314951529966357537316103142996695159644 
310314964429966
495159644
Sheet1
Cell Formulas
RangeFormula
K2:M2K2=IFERROR(INDEX($B$2:$B$3398,AGGREGATE(15,6,(ROW($A$2:$A$3398)-ROW($A$2)+1)/(($A$2:$A$3398=$I2)*($C$2:$C$3398=$J2)),COLUMNS($K$2:K2))),"")
K4K4=TRANSPOSE(FILTER($B$2:$B$3398,($A$2:$A$3398=$I2)*($C$2:$C$3398=$J2)))
 
Upvote 0

Forum statistics

Threads
1,213,565
Messages
6,114,337
Members
448,568
Latest member
Honeymonster123

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