View Single Post
  #12   Report Post  
Posted to microsoft.public.excel.programming
Frank Situmorang[_2_] Frank Situmorang[_2_] is offline
external usenet poster
 
Posts: 65
Default how to split 2 or 3 pieces name in 1 cell into 2 or 3 cells

Thanks very much Carlo, it works ok now for me
--
H. Frank Situmorang


"carlo" wrote:

Kalpesh's solution is in VBA, because you posted it in the programming
section.
I figured that you wanted to achieve this with formulas, that's where
my approach comes from.

hth

Carlo

On Dec 18, 4:56 pm, Frank Situmorang wrote:
Thanks Kalpesh for your quick response, however I have tried to look all
excel function, I can not found split function, could you explain again on
how can I handle it?

Thanks very much

--
H. Frank Situmorang



"Kalpesh" wrote:
Frank,


You can use Split function to break the string into pieces seperated
by space.


So, a string with Rone Aprilia Gultom will return an array with length
3
e.g. data = Split("Rona Aprilia Gultom", " ")
data(0) - will return Rona
data(1) - will return Aprilia
data(2) - will return Gultom


The length of array will change depending upon the spaces inside the
name.
I am assuming, things are seperated by space.


HTH
Kalpesh


On Dec 18, 10:46 am, Frank Situmorang wrote:
Hello,


I want to finetuning my chruch records membership
With 500 members some names are 2 or 3 pieces words and now I want to put
them into separate names since I want to build a Access database instead of
excell


this is example of my problem
In excel iin one Cell
Rona Aprilia Gultom, I want to separate it into 3 Cell
Fuirst Name: Rona
Middle Name: Aprilia
Last Name: Gultom


My problem some is 2 pieces and some are 3 and the length of the name is
variable so I can not use Mid function in this matter.


What is certain is there is alwasy "space" between the words of the name


Can anyone help me how to do splitting this names?


Thanks in advance,


Frank


--
H. Frank Situmorang- Hide quoted text -


- Show quoted text -