Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default leave only first letter of last name

I tried to search for this solution on the web, but finally gave up.

Here's what I want to do

In a cell I have a users First and Lastname (yes both in the same
cell).
I'd like to end up with Firstname and first letter of Lastname (don't
have to still be in a single cell, but would be nice).

So go from: Ima User to Ima U

Thanks for your help

  #2   Report Post  
Max
 
Posts: n/a
Default

Assuming data is in A1 down,
Try in B1: =LEFT(A1,LEN(TRIM(A1))-SEARCH(" ",TRIM(A1))+1)
Copy down
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
wrote in message
oups.com...
I tried to search for this solution on the web, but finally gave up.

Here's what I want to do

In a cell I have a users First and Lastname (yes both in the same
cell).
I'd like to end up with Firstname and first letter of Lastname (don't
have to still be in a single cell, but would be nice).

So go from: Ima User to Ima U

Thanks for your help



  #3   Report Post  
 
Posts: n/a
Default

That worked on maybe 25% of the names I have.

  #4   Report Post  
Max
 
Posts: n/a
Default

Maybe you could post/paste some sample data (to cover as full a range of the
different variations as possible), and the expected results.
I'm sure you'll get much better suggestions ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
wrote in message
oups.com...
That worked on maybe 25% of the names I have.



  #5   Report Post  
Max
 
Posts: n/a
Default

In the interim, guess you could also try this:

=LEFT(TRIM(A1),SEARCH(" ",TRIM(A1))-1)&" "&MID(TRIM(A1),SEARCH("
",TRIM(A1))+1,1)

Let me know how many percent is achieved with the above <g

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
wrote in message
oups.com...
That worked on maybe 25% of the names I have.





  #6   Report Post  
Max
 
Posts: n/a
Default

Trash the earlier convolution, sorry

Just try in B1: =LEFT(TRIM(A1),SEARCH(" ",TRIM(A1))+1)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


  #7   Report Post  
 
Posts: n/a
Default

SWEET! That's 100%! Thanks Max ... you rock!

  #8   Report Post  
Max
 
Posts: n/a
Default

Glad to hear that it worked!
Thanks for the feedback ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
wrote in message
oups.com...
SWEET! That's 100%! Thanks Max ... you rock!



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
Converting Letter Grades to Numeric Angelo D Excel Worksheet Functions 6 April 25th 05 07:29 PM
How do I get a letter in one cell ito equal a number in anotherl.. Dave Cadey Excel Discussion (Misc queries) 4 February 25th 05 02:37 PM
Have A Letter Reference A Name For An Intoduction travelersway New Users to Excel 2 February 16th 05 05:47 PM
Replace Letter "E" with Letter "C" for 200 Different Sums in a Col Katherine Excel Worksheet Functions 1 January 21st 05 02:53 AM
Function / formula to be used if cell contains a letter. Cameron Stewart Excel Worksheet Functions 2 November 2nd 04 12:12 AM


All times are GMT +1. The time now is 03:27 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"