Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dennis_in_nh
 
Posts: n/a
Default Using FIND function to locate space between first and last name

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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Using FIND function to locate space between first and last name

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!

In article . com,
"Dennis_in_nh" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"