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.

NAMELastMatch1Match2Match3
Samantha Jones

JonesSamantha JonesFrank JonesMark Jones III
Frank Jones

<tbody>
</tbody>
Tim Fitzgerald
Jones, Tim
Joseph Jonsten
Nicole-Jones
Mark Jones III
Mike Brown

<tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
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,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

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