Using FIND function to locate space between first and last name

  • Thread starter Thread starter Dennis_in_nh
  • Start date Start date
D

Dennis_in_nh

Hello,

I am trying to extract last names out of a list of doctors formated as
first name, last name, then MD. I am trying to use the find function
to count the characters up to the space between the names using =FIND("
",A1) but I get a value error. Is there any way to find the position
of a space?

Or is it possible to count up to the second upper case letter in the
string which would give me the start of the last name?

Thanks in advance for answering this newbie question!

Dennis
 
Assuming that the data is in the following format...

John Doe, MD

....try the following formula...

=MID(A1,FIND(" ",A1)+1,FIND(",",A1)-FIND(" ",A1)-1)

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top