#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default split cell value

Hi,

I have a huge data contains names of the customer in a single column, i want
to take out the first letter of the first name in the word and add with a dot.

Example

If the name in the column A1 - Tiger Woods , i want the result in B2 as T.W.
Sachin R Tendulkar - S.R.T.
Adam Gilly Jr - A.G.Jr.
--
Thanks and all your help will be much appriciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default split cell value

One option will be as shown in linked pictu
http://img268.imageshack.us/img268/6987/nonameu.png
Micky


"Pradeep" wrote:

Hi,

I have a huge data contains names of the customer in a single column, i want
to take out the first letter of the first name in the word and add with a dot.

Example

If the name in the column A1 - Tiger Woods , i want the result in B2 as T.W.
Sachin R Tendulkar - S.R.T.
Adam Gilly Jr - A.G.Jr.
--
Thanks and all your help will be much appriciated

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default split cell value

Try this UDF (User Defined function). From workbook launch VBE using Alt+F11.
From menu Insert a Module and paste the below function.Close and get back to
workbook and try the below formula.

=getinitials(A1)

Function GetInitials(strData As String)
arrData = Split(strData, " ")
For intword = 0 To UBound(arrData)
If Len(arrData(intword)) 2 Then
GetInitials = GetInitials & Left(arrData(intword), 1) & "."
Else
GetInitials = GetInitials & arrData(intword) & "."
End If
Next
End Function
--
Jacob


"Pradeep" wrote:

Hi,

I have a huge data contains names of the customer in a single column, i want
to take out the first letter of the first name in the word and add with a dot.

Example

If the name in the column A1 - Tiger Woods , i want the result in B2 as T.W.
Sachin R Tendulkar - S.R.T.
Adam Gilly Jr - A.G.Jr.
--
Thanks and all your help will be much appriciated

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default split cell value

see response to your earlier posting where I gave you a macro to do this.

--
Regards
Roger Govier

"Pradeep" wrote in message
...
Hi,

I have a huge data contains names of the customer in a single column, i
want
to take out the first letter of the first name in the word and add with a
dot.

Example

If the name in the column A1 - Tiger Woods , i want the result in B2 as
T.W.
Sachin R Tendulkar - S.R.T.
Adam Gilly Jr - A.G.Jr.
--
Thanks and all your help will be much appriciated

__________ Information from ESET Smart Security, version of virus
signature database 4828 (20100202) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4828 (20100202) __________

The message was checked by ESET Smart Security.

http://www.eset.com



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
Split a cell israel New Users to Excel 2 April 22nd 09 05:22 AM
How do i split a cell? Tim Excel Discussion (Misc queries) 3 November 30th 07 05:54 PM
split a cell diagonally in excell - a calendar -2 dates in 1 cell Vicki Excel Discussion (Misc queries) 1 October 31st 06 03:40 PM
Split a cell M. Wasim Excel Discussion (Misc queries) 6 June 12th 06 09:14 PM
How can I split one cell into two cell parts (upper & lower)? Desert Sparkle Excel Discussion (Misc queries) 0 January 5th 06 10:22 PM


All times are GMT +1. The time now is 05:43 AM.

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"