Multiple matches in an Array (one or two criteria

rotmanite11

New Member
Joined
Aug 21, 2014
Messages
6
Hi there,

I have a question I am trying to solve. I have used INDEX/MATCH/ROW/SEARCH functions, in different permutations, but I am unable to get the result. I am hoping one of the Excel experts can help me out:

The data set is something similar to the below:

[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Car[/TD]
[TD]Region[/TD]
[TD]Own[/TD]
[TD]Use[/TD]
[TD]Color[/TD]
[/TR]
[TR]
[TD]Honda[/TD]
[TD]North[/TD]
[TD]Yes[/TD]
[TD]I use it to go for work[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD]Toyota[/TD]
[TD]South[/TD]
[TD]No[/TD]
[TD]Family trips[/TD]
[TD]Grey[/TD]
[/TR]
[TR]
[TD]BMW[/TD]
[TD]East[/TD]
[TD]Yes[/TD]
[TD]Weekend fun[/TD]
[TD]Blue[/TD]
[/TR]
[TR]
[TD]Ford[/TD]
[TD]North[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]Yellow[/TD]
[/TR]
[TR]
[TD]Honda[/TD]
[TD]North[/TD]
[TD]Yes[/TD]
[TD]2nd car[/TD]
[TD]White[/TD]
[/TR]
[TR]
[TD]Toyota[/TD]
[TD]West[/TD]
[TD]No[/TD]
[TD]Work[/TD]
[TD]Green[/TD]
[/TR]
</tbody>[/TABLE]

I want to be able to do following (2 separate tasks):

Task 1 (if in A1 on a new sheet, I had Use, i want to list all the items in an adjacent column, skipping the blank rows)):

[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Use[/TD]
[TD]I use it to go for work[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Family trips[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Weekend fun[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2nd car[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Work[/TD]
[/TR]
</tbody>[/TABLE]

Task 2 (if i had Honda (A2) and North (B2), I want to have the colors listed in Column 3):


[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Car[/TD]
[TD]Region[/TD]
[TD]Color[/TD]
[/TR]
[TR]
[TD]Honda[/TD]
[TD]North[/TD]
[TD]Green[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]White[/TD]
[/TR]
</tbody>[/TABLE]


I know this can be done by an auto-filtering or manual sort, but I have work with thousands of similar data on a regular basis, and i want to find a formula that will allow me to list the items based on different criterion.

Thanks for your help.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try:
These are array formulas and must be entered with CTRL-SHIFT-ENTER
Copy formulas down as needed.

Excel Workbook
AB
1UseI use it to go for work
2Family trips
3Weekend fun
42nd car
5Work
Use


Excel Workbook
ABC
1CarRegionColor
2HondaNorthGreen
3White
Color


Excel Workbook
ABCDE
1CarRegionOwnUseColor
2HondaNorthYesI use it to go for workGreen
3ToyotaSouthNoFamily tripsGrey
4BMWEastYesWeekend funBlue
5FordNorthYesYellow
6HondaNorthYes2nd carWhite
7ToyotaWestNoWorkGreen
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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