Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default data splitting

hello..

I have a column of data which i want to split into 2 other columns.

For example,

A B C
ABC SCH, CDE SCH ABC SCH CDE SCH
FGH SCH, FGH SCH -
IJK SCH, LMN SCH IJK SCH LMN SCH

As seen above, the data is separated by commas.

I have input this formuale into cell B1 : =LEFT(A1,FIND(",",A1)-1) and I
manage to get the "ABC SCH".

But I don't know what formuale to put in cell C1.

Can anyone help me ?

Thanks!

If possible, maybe a VBA code for everything here? (I'm don't know anything
about VBA at all)
--
help me
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default data splitting

On Apr 20, 10:18*am, ernietan
wrote:
I have a column of data which i want to split into 2 other columns.
...
But I don't know what formuale to put in cell C1.


Try the mid function, something like [=mid(A1,FIND(",",A1)+1,999)] - I
think you have to specify an upper limit for the length which I have
put as 999 here. If there might not be a comma, you need an if around
it to check the find.

Phil Hibbs.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default data splitting

Try
=TRIM(MID(A1,FIND(",",A1)+1,255))

OR try 'Text to Columns' option from menu 'Data'

--
Jacob (MVP - Excel)


"ernietan" wrote:

hello..

I have a column of data which i want to split into 2 other columns.

For example,

A B C
ABC SCH, CDE SCH ABC SCH CDE SCH
FGH SCH, FGH SCH -
IJK SCH, LMN SCH IJK SCH LMN SCH

As seen above, the data is separated by commas.

I have input this formuale into cell B1 : =LEFT(A1,FIND(",",A1)-1) and I
manage to get the "ABC SCH".

But I don't know what formuale to put in cell C1.

Can anyone help me ?

Thanks!

If possible, maybe a VBA code for everything here? (I'm don't know anything
about VBA at all)
--
help me

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default data splitting

....or if you don't want to specify the arbitrary length limit, you
could do it this way:

=RIGHT(A1,LEN(A1)-FIND(",",A1))

Phil Hibbs.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default data splitting

alright! thanks! it works wonder..
--
help me


"Jacob Skaria" wrote:

Try
=TRIM(MID(A1,FIND(",",A1)+1,255))

OR try 'Text to Columns' option from menu 'Data'

--
Jacob (MVP - Excel)


"ernietan" wrote:

hello..

I have a column of data which i want to split into 2 other columns.

For example,

A B C
ABC SCH, CDE SCH ABC SCH CDE SCH
FGH SCH, FGH SCH -
IJK SCH, LMN SCH IJK SCH LMN SCH

As seen above, the data is separated by commas.

I have input this formuale into cell B1 : =LEFT(A1,FIND(",",A1)-1) and I
manage to get the "ABC SCH".

But I don't know what formuale to put in cell C1.

Can anyone help me ?

Thanks!

If possible, maybe a VBA code for everything here? (I'm don't know anything
about VBA at all)
--
help me

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
data splitting ernietan Excel Discussion (Misc queries) 1 April 20th 10 10:40 AM
Splitting data into seperate worksheets with data change Louise Excel Programming 7 August 22nd 09 09:51 PM
Splitting data from one sheet into 2 other sheets. Data is skewed afaust Excel Programming 10 December 8th 08 02:47 PM
Splitting Data Nicole Excel Worksheet Functions 2 December 4th 08 10:07 PM
Please Help Splitting data [email protected] Excel Programming 7 December 11th 07 04:24 AM


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