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?
 
will do thank you so much!!

You are welcome.

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?

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

cannot delete the name it finds from NameList. On the other hand, the formula can be extended to remove the name from J30553 such that we get the string without the name in the formula cell.
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Thank you once again. You have saved my weekend. The formula worked in the end on most but not all due to not having all the names!!!!

I didnt really try the other, but thank you!!
 
Upvote 0

Forum statistics

Threads
1,215,143
Messages
6,123,279
Members
449,094
Latest member
GoToLeep

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