Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Craig Brody
 
Posts: n/a
Default How to pluck out initials of a 2 or 3 word name

For example, in A1 might be the name:

John Smith or John L. Smith or John Lee Smith

I would like the result in cell B1 to be JS only

Can a function be used? I have come up so far with
"=MID(A1,1,1)&MID(A1,FIND(" ",A1)+1,1)" but it gives me the middle name
initial and leaves out the last name initial

any help much appreciated!!
thank you
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Craig,

=LEFT(A1,1) & MID(A1,IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=1,FIND(" ",A1)+1,FIND(" ",A1,FIND("
",A1)+1)+1),1)

All on one line.

HTH,
Bernie
MS Excel MVP


"Craig Brody" wrote in message
...
For example, in A1 might be the name:

John Smith or John L. Smith or John Lee Smith

I would like the result in cell B1 to be JS only

Can a function be used? I have come up so far with
"=MID(A1,1,1)&MID(A1,FIND(" ",A1)+1,1)" but it gives me the middle name
initial and leaves out the last name initial

any help much appreciated!!
thank you



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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I link excel to word so excel changes appear in word? caliskier Excel Discussion (Misc queries) 2 August 31st 05 05:23 PM
Can Excel Export Data to Word Format? Reddiance Excel Discussion (Misc queries) 2 April 18th 05 06:03 PM
Entering Excel information into MS Word dwalsh77 Excel Discussion (Misc queries) 0 April 8th 05 05:29 PM
How to embed Word document into Excel and retain sizing, formatti. Kent Excel Discussion (Misc queries) 0 February 2nd 05 07:37 PM
Embedded word doc changed to image-need to change back to word. cflores Excel Discussion (Misc queries) 0 January 23rd 05 06:45 AM


All times are GMT +1. The time now is 09:02 PM.

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"