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:
CompanyContact
Tim LumberSimon Keith
JoeFishPhil Cornwall
Bill CaféJen Bass
Coffee RoomSteven Rodes
BFT ShopHelen Mair
Fly TodayTony Pease
JoeFishMatt Homles
The WoodshopGreg Chaps
JoeFishEaton Helm
King PalaceBarney Coo
BFT ShopRay Pardright
Coffee RoomSienna Wily
Big CateringSarah Cooper
OUTPUT
CompanyContact
Joe FishPhil Cornwall
Matt Homles
Eaton Helm

<tbody>
</tbody>


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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,216,138
Messages
6,129,099
Members
449,486
Latest member
malcolmlyle

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