+ Reply to Thread
Results 1 to 3 of 3

Split cells before and after >> and copy the data to column A +B

  1. #1
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Split cells before and after >> and copy the data to column A +B

    I have data in column G3 in this format 10, 11, 12, 15, 21 >> 4, 0, 14, 6, 3 about 2400 rows ....I want a macro to simply split cell G and copy the values to column A and B. See sample attached. Rep given for a solution -many thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Split cells before and after >> and copy the data to column A +B

    FYI - I used Data; TextToColumn to Create Macro. It will first Clear out anything in Columns A & B, then YOU MUST BE IN TOP CELL OF WHERE YOU WANT TO SPLIT ITEMS! It is splitting when it sees '>' or multiple symbols of '>' and puts into Cell A1. You can perform this without Macro help too! (Use Alt + F8 to locate the only macro in workbook.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Split cells before and after >> and copy the data to column A +B

    FYI - I used Data; TextToColumn to Create Macro. It will first Clear out anything in Columns A & B, then YOU MUST BE IN TOP CELL OF WHERE YOU WANT TO SPLIT ITEMS! It is splitting when it sees '>' or multiple symbols of '>' and puts into Cell A1. You can perform this without Macro help too! (Use Alt + F8 to locate the only macro in workbook.

  4. #4
    Forum Contributor
    Join Date
    07-01-2012
    Location
    ZA
    MS-Off Ver
    Excel 2013
    Posts
    300

    Re: Split cells before and after >> and copy the data to column A +B

    Quote Originally Posted by queuesef View Post
    FYI - I used Data; TextToColumn to Create Macro. It will first Clear out anything in Columns A & B, then YOU MUST BE IN TOP CELL OF WHERE YOU WANT TO SPLIT ITEMS! It is splitting when it sees '>' or multiple symbols of '>' and puts into Cell A1. You can perform this without Macro help too! (Use Alt + F8 to locate the only macro in workbook.
    Works like a champ well done great coding rep given for your help...This is marked solved thanks again queuesef

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Column Row, split some data within row cells, HOW??
    By excelboxnovice in forum Excel General
    Replies: 5
    Last Post: 03-15-2016, 10:46 PM
  2. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  3. [SOLVED] Split column of cells, each cells data is separated by commas into separate rows
    By mike_m1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2014, 08:33 AM
  4. [SOLVED] Copy all cells in column that contain data & paste to first empty row of another column.
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2014, 08:45 AM
  5. [SOLVED] copy selected data into column A cells if column B contains text
    By El Conquistador in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-05-2013, 02:51 PM
  6. Replies: 3
    Last Post: 08-28-2012, 10:09 AM
  7. Split cell data into multiple new rows and copy other column values
    By jooga in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-01-2010, 02:30 AM

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