Results 1 to 16 of 16

Split up a cell by every ;

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Göteborg
    MS-Off Ver
    2010
    Posts
    130

    Split up a cell by every ;

    I got a problem which is outside of my comfortzone so I was thinking about asking for help here. I got a datafile which is attached below with a examplefile as how the data can look like. In the first sheet is how the data looks like and the second sheet is instead how I would like to have the data after my macro.

    Every datarow has all their data in one row which is the problem. For example A5 might look like this; 860528306;201513;KXDPBO08;2015151;VP11K ;53;

    What I want to do is the following?
    From row 5 to the lastrow, I want to split up the first column (A5,A6,A7...and so on) with every ; character.
    Therefore the example of 860528306;201513;KXDPBO08;2015151;VP11K ;53; would be the following:

    Cell("A2")=860528306
    Cell("B2")=201513
    Cell("C2")=KXDPBO08
    Cell("D2")=2015151
    Cell("E2")=VP11K
    Cell("F2")=53

    As you can see the last ; character is just an end of the data. There might also be spaces in the data so I would have to trim the cells.
    I haven't done any code with splitting up cells so I would be very happy if anyone could help me.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 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
  2. [SOLVED] create macro to split screen and then in top split, go to a certain cell
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-17-2015, 05:45 PM
  3. Split cell to create sorted heading on empty row above and keep second split info
    By CastingDirector in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2015, 12:24 AM
  4. [SOLVED] Split Array, Listing Marked Items in Split Arrays
    By lesoies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2013, 02:07 AM
  5. [SOLVED] Split Macro modification to Split into new Workbooks instead of sheets within one workbook
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2012, 08:11 PM
  6. Macro : Split text of a single cell into multiple cell
    By rampal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2012, 02:05 PM
  7. Can excels Split() function split a string up at multiple spots?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2011, 02:36 PM

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