Multiple Criteria Multiple Rows output in Excel using vlookup or index?

tomjacobmartin

New Member
Joined
May 23, 2014
Messages
2
I have a peculiar doubt...Is it possible to search multiple rows in an excel sheet that satisfies multiple criteria.

For Example, in the following table(First row is the header); If i have to search for data matching two criterias, Name= "Tom" AND Car= "AUDI" and get all the Service details for this combination(In this case, Routine Service, Windshield) in separate rows.

The forum has lot of solutions for multiple search criteria to give a single row, or a single vlookup with multiple rows as ouput, however im not getting Multi Criteria Multiple rows vlookup/Index case.

Can someone help me in this?

TIA!!!
Name
Car
Service Details
Tom
AUDI
Routine Service
Jon
BMW
Headlamp
Tom
Mercedez
Gear oil
Sam
Mercedez
Tail Lamp
Tom
AUDI
Windshield

<tbody>
</tbody>
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Sheet1, A:C, houses the sample...

NameCarService Details
TomAUDIRoutine Service
JonBMWHeadlamp
TomMercedezGear oil
SamMercedezTail Lamp
TomAUDIWindshield

<COLGROUP><COL style="WIDTH: 57pt; mso-width-source: userset; mso-width-alt: 2702" width=76><COL style="WIDTH: 121pt; mso-width-source: userset; mso-width-alt: 5745" width=162><COL style="WIDTH: 146pt; mso-width-source: userset; mso-width-alt: 6940" width=195><TBODY>
</TBODY>

Sheet2,column A, the processing...

Tom
Audi
Service Details
Routine Service
Windshield

<COLGROUP><COL style="WIDTH: 113pt; mso-width-source: userset; mso-width-alt: 5376" width=151><TBODY>
</TBODY>

A4, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX(Sheet1!$C$2:$C$6,SMALL(IF(Sheet1!$A$2:$A$6=A$1,
  IF(Sheet1!$B$2:$B$6=A$2,ROW(Sheet1!$C$2:$C$6)-ROW(Sheet1!$C$2)+1)),
  ROWS(A$4:A4))),"")
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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