List data in one column based on the criteria on another column

rotmanite11

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

I need to find names from one column based on a criteria on another column. I would normally do this using INDEX/MATCH function.

However, the challenge I have is that I need to list in order (doesn't have to be alphabetic) all the names that match the criteria. I have shared below a sample as example:


DATA:
[TABLE="width: 182"]
<tbody>[TR]
[TD]Company[/TD]
[TD]Contact[/TD]
[/TR]
[TR]
[TD]Tim Lumber[/TD]
[TD]Simon Keith[/TD]
[/TR]
[TR]
[TD]JoeFish[/TD]
[TD]Phil Cornwall[/TD]
[/TR]
[TR]
[TD]Bill Café[/TD]
[TD]Jen Bass[/TD]
[/TR]
[TR]
[TD]Coffee Room[/TD]
[TD]Steven Rodes[/TD]
[/TR]
[TR]
[TD]BFT Shop[/TD]
[TD]Helen Mair[/TD]
[/TR]
[TR]
[TD]Fly Today[/TD]
[TD]Tony Pease[/TD]
[/TR]
[TR]
[TD]JoeFish[/TD]
[TD]Matt Homles[/TD]
[/TR]
[TR]
[TD]The Woodshop[/TD]
[TD]Greg Chaps[/TD]
[/TR]
[TR]
[TD]JoeFish[/TD]
[TD]Eaton Helm[/TD]
[/TR]
[TR]
[TD]King Palace[/TD]
[TD]Barney Coo[/TD]
[/TR]
[TR]
[TD]BFT Shop[/TD]
[TD]Ray Pardright[/TD]
[/TR]
[TR]
[TD]Coffee Room[/TD]
[TD]Sienna Wily[/TD]
[/TR]
[TR]
[TD]Big Catering[/TD]
[TD]Sarah Cooper[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]OUTPUT[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Company[/TD]
[TD]Contact[/TD]
[/TR]
[TR]
[TD]Joe Fish[/TD]
[TD]Phil Cornwall[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Matt Homles[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Eaton Helm[/TD]
[/TR]
</tbody>[/TABLE]


I need to get the result as the output shown above. I know I might be able to do this using Filter/Sort function as well, but I am trying to do it using a formula.

Thanks for your help.

Cheers
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Drag the formula downwards from E1


Excel 2010
ABCDE
1CompanyContactJoeFishSimon Keith
2Tim LumberSimon KeithTony Pease
3JoeFishPhil CornwallGreg Chaps
4Bill CafJen Bass
5Coffee RoomSteven Rodes
6BFT ShopHelen Mair
7Fly TodayTony Pease
8JoeFishMatt Homles
9The WoodshopGreg Chaps
10JoeFishEaton Helm
11King PalaceBarney Coo
12BFT ShopRay Pardright
13Coffee RoomSienna Wily
14Big CateringSarah Cooper
Sheet6
Cell Formulas
RangeFormula
E1{=IFERROR(INDEX($B$1:$B$14,SMALL(IF($A$2:$A$14=$D$1,ROW($A$2:$A$14)-ROW($A$2)+1),ROW(A1))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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