PC Review


Reply
Thread Tools Rate Thread

data splitting

 
 
ernietan
Guest
Posts: n/a
 
      20th Apr 2010
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 With Quote
 
 
 
 
Phil Hibbs
Guest
Posts: n/a
 
      20th Apr 2010
On Apr 20, 10:18*am, ernietan <ernie...@discussions.microsoft.com>
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.
 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      20th Apr 2010
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 With Quote
 
Phil Hibbs
Guest
Posts: n/a
 
      20th Apr 2010
....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.
 
Reply With Quote
 
ernietan
Guest
Posts: n/a
 
      20th Apr 2010
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting data into seperate worksheets with data change Louise Microsoft Excel Programming 7 22nd Aug 2009 09:51 PM
Splitting data from one sheet into 2 other sheets. Data is skewed afaust Microsoft Excel Programming 10 8th Dec 2008 02:47 PM
Splitting a Column of Data into Two Columns of Data blee2879@gmail.com Microsoft Excel Programming 0 24th May 2007 11:00 PM
Splitting data? Ket Microsoft Excel Worksheet Functions 0 23rd Jun 2004 01:29 PM
Splitting Data =?Utf-8?B?dGhhbmtzIGluIGFkdmFuY2U=?= Microsoft Excel Misc 2 27th May 2004 07:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 AM.