Finding second and third matches of a cell within column

DrAGen

New Member
Joined
Jan 4, 2018
Messages
2
I have a vertical list consisting bunch of names. I'm looking for a way to find the second and third matches of a cell value prepended with a space.


I'm using =VLOOKUP("*"&" " &B2&"*",A:A,1,FALSE) for the match1 below, which is working fine, but I couldn't figure out a way to automatically find second and third matches.

Any help would be greatly appreciated.

[TABLE="width: 500"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]Last[/TD]
[TD]Match1[/TD]
[TD]Match2[/TD]
[TD]Match3[/TD]
[/TR]
[TR]
[TD]Samantha Jones

[/TD]
[TD]Jones[/TD]
[TD]Samantha Jones[/TD]
[TD]Frank Jones[/TD]
[TD]Mark Jones III[/TD]
[/TR]
[TR]
[TD]Frank Jones
[TABLE="width: 500"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tim Fitzgerald
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jones, Tim
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Joseph Jonsten
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Nicole-Jones
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mark Jones III[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mike Brown
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

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
Welcome to Mr Excel forum

Try this array formula in C2 copied across
=IFERROR(INDEX($A:$A,SMALL(IF(ISNUMBER(SEARCH(" "&$B2,$A$2:$A$100)),ROW($A$2:$A$100)),COLUMNS($C2:C2))),"")
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0
Hi Marcelo Branco - that worked :-) Thank you so much for your help. I really do appreciate it.
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,122
Members
452,381
Latest member
Nova88

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