+ Reply to Thread
Results 1 to 6 of 6

split the data in 1 column to 3 columns

  1. #1
    Registered User
    Join Date
    04-23-2008
    Posts
    48

    split the data in 1 column to 3 columns

    hi all,

    Good days.

    i am facing a problem to write a macro. i don't know how to explain, kindly please refer to my attachment.

    i hope can get help from yours.

    Thanks so much.
    Attached Files Attached Files
    Last edited by ccs_1981; 08-27-2009 at 06:07 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: split the data in 1 column to 3 columns

    You should be able to do this with Text to Columns from the Data menu, it doesn't need VBA
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-23-2008
    Posts
    48

    Re: split the data in 1 column to 3 columns

    Quote Originally Posted by royUK View Post
    You should be able to do this with Text to Columns from the Data menu, it doesn't need VBA


    but my data is different, if the data end with UF' or 'K' or only integer, the data will cut and paste to column 'Value', others data will ignore.

    if the data end with %. then it will cut and paste to column 'Percentage'

    and if the data end with letter 'W' or 'V', it will cut and paste to column 'Voltage'.

    still able to do this by the data menu? it is 1 part from the marco there...so it need VBA.

  4. #4
    Registered User
    Join Date
    04-23-2008
    Posts
    48

    Re: split the data in 1 column to 3 columns

    have anyone has any idea about it?

    Thanks.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: split the data in 1 column to 3 columns

    I'll take a look at this. What other possible suffixes will you have to be broken apart besides W and V. If there are others, I'll need examples.

    J
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: split the data in 1 column to 3 columns

    See the attached copy of your workbook. The macros included in the workbook work on the data you submitted. If there are additional variations of the part numbers, they will need to be handled with additional code. The macros could very easily be incorporated into one or possibly two. I took it by steps and left them that way.

    Hope this helps. J
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1