How to extract Name and Surname from data string

Alex007

New Member
Joined
Jul 17, 2015
Messages
14
Hi,

Need urgent help please peeps.

I have a string of data "BAML - BoA:1999 Baaz Smith - Tradeplant - ETT"

I have a table of names on a different tab.

I need a formula to find above name in my table on a different tab and return back a name. I have below but for some reason its returning a wrong name.

=IFERROR(INDEX(Sheet3!A:A,MAX(IF(ISERROR(FIND(Sheet3!A:A,J2)),-1,1)*(ROW(Sheet3!A:A)-ROW(J2)+1))), "None")

PLEASE HELP!!!:eek::confused:

While i am here......how hard would it be to have the reverse......find the name a delete it?
 

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.
Hi,

In a nutshell i have 42k lines with staff names inside a string of data. I have the staff names but i need to create a column that extracts there names from the string. Is this possible. Thank you for replying!!
 
Upvote 0
Hi,

In a nutshell i have 42k lines with staff names inside a string of data. I have the staff names but i need to create a column that extracts there names from the string. Is this possible. Thank you for replying!!

I don't get the answer I expect, not really anyways. Is it Baaz Smith? If it is, do you have a list of the names of interest elsewhere?
 
Upvote 0
I have a list of names which are current employees....... So Jim Smith, Bob Dylan, Mike Jackson, etc

I have another tab with lots of data each line in say cell a1,a2,a3 is the following:

DB MAIN A/C:3161 Jim Smith DOS (Delta One Systems)
DB MAIN A/C:3228 - Bob Dylan LD, FX & EQT Cli
DB MAIN A/C:Mike Jackson SERVICE CREDITS

above is 42 thousand times down. I need to extract each name in to the next cell. the data is different in most of the cells but will have a staff name.
 
Upvote 0
Try...

=LOOKUP(9.99999999999999E+307,SEARCH(" "&NameList&" ",$A1),NameList)

NameList refers to a range housing a list of the relevant names. And A1 is a target string like: DB MAIN A/C:3161 Jim Smith DOS (Delta One Systems).

Does this succeed? If it does, how is the speed, given the length of the NameList to seek?
 
Upvote 0
Brilliant this works!! Thank you Sir!

but yes......it is very slowwwwwwwwwwwwwwwwwww at calculating

below is what worked.

=LOOKUP(9.99999999999999E+307,SEARCH(" "&Sheet2!A:A&" ",$J30553),Sheet2!A:A)
 
Upvote 0
Brilliant this works!! Thank you Sir!

but yes......it is very slowwwwwwwwwwwwwwwwwww at calculating

below is what worked.

=LOOKUP(9.99999999999999E+307,SEARCH(" "&Sheet2!A:A&" ",$J30553),Sheet2!A:A)

Try not to use a whole column reference for reasons of efficiency. Also, modify $J30553 to " "&$J30553&" ".
 
Upvote 0
will do thank you so much!!

Quick question how hard would it be to do the reverse find the name and delete it? and give me a string with out the name?
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,025
Members
448,543
Latest member
MartinLarkin

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