#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default FORMULAE - REPLACE

How do I replace the first name with the first initial from a list of first
an d last names?

e.g.

John Doe with J Doe

Thank you,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default FORMULAE - REPLACE

=LEFT(A1)&" "&MID(A1,FIND(" ",A1)+1,99)


"DarkStar" wrote:

How do I replace the first name with the first initial from a list of first
an d last names?

e.g.

John Doe with J Doe

Thank you,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default FORMULAE - REPLACE

Here is another way...

=SUBSTITUTE(A1,MID(A1,2,FIND(" ",A1)-2),"")

Rick


"DarkStar" wrote in message
...
How do I replace the first name with the first initial from a list of
first
an d last names?

e.g.

John Doe with J Doe

Thank you,


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default FORMULAE - REPLACE

Try this:

=LEFT(A1)&MID(A1,FIND(" ",A1),50)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"DarkStar" wrote in message
...
How do I replace the first name with the first initial from a list of

first
an d last names?

e.g.

John Doe with J Doe

Thank you,


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default FORMULAE - REPLACE

On Sun, 2 Mar 2008 14:34:01 -0800, DarkStar
wrote:

How do I replace the first name with the first initial from a list of first
an d last names?

e.g.

John Doe with J Doe

Thank you,



=REPLACE(A1,2,FIND(" ",A1)-2,"")

If it is possible that either the first or last name is not properly
capitalized, you could use this to also capitalize properly:

=PROPER(REPLACE(A1,2,FIND(" ",A1)-2,""))

--ron
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
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
Can I replace a ' at the beginning of a text cell using Replace Hilde Excel Discussion (Misc queries) 4 September 10th 07 06:22 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
Searching TEXT in formulae, rather than results of formulae AndyE Excel Worksheet Functions 1 July 15th 05 10:57 AM
How can I use replace(alt+H) for mutiple items needing replace Gery Excel Worksheet Functions 1 June 15th 05 05:51 PM


All times are GMT +1. The time now is 01:10 PM.

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

About Us

"It's about Microsoft Excel"