+ Reply to Thread
Results 1 to 9 of 9

Split string into separate columns without delimiter

Hybrid View

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Sweden
    MS-Off Ver
    MS 365 version 2302
    Posts
    20

    Split string into separate columns without delimiter

    Hi,

    in my sheet I have the following certain columns which content i want to split into separate columns.

    Column F (9 positions long) --> value on position 1 goes into once column, value on position 2 goes into one column, value on position 3 goes into one column etc..
    Column G (24 positions longs) --> value on position 1 goes into once column, value on position 2 goes into one column, value on position 3 goes into one column etc..
    Column H (90 positions long) --> value on position 1 goes into once column, value on position 2 goes into one column, value on position 3 goes into one column etc..

    How can I do that my using a formula.. I have tried the MID formula but does not get it work.

    I have attached the file and would be very grateful if one one can help out

    Br,
    MMExample split string to columns.xlsx

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,176

    Re: Split string into separate columns without delimiter

    In I2

    =MID($F2,COLUMN(A$1),1)

    Copy across to Q and down

    Same fpr other options
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Split string into separate columns without delimiter

    mm82.


    Is your forum profile showing the Excel PRODUCT that you need this request to work with? CLEARLY, you are NOT using Excel 2003.

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    04-09-2014
    Location
    Sweden
    MS-Off Ver
    MS 365 version 2302
    Posts
    20

    Re: Split string into separate columns without delimiter

    Gleen, not sure what you are talking about?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Split string into separate columns without delimiter

    Use this formula in cell I2:

    =MID($F2,COLUMNS($I:I),1)

    You may need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings. Also, you should format the cell as General, rather than Text. Then you can copy this across to Q2 (i.e. the green cells), and then copy those down as required.

    Then you can use this formula in cell R2:

    =MID($G2,COLUMNS($R:R),1)

    Same comments as above, then copy across and down the pink cells. Finally, use this in cell AP2:

    =MID($H2,COLUMNS($AP:AP),1)

    for the yellow cells.

    Hope this helps.

    Pete

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Split string into separate columns without delimiter

    If you have something more up to date that supports SEQUENCE, format ALL cells for results as GENERAL, not TEXT:

    =MID(F2,SEQUENCE(,LEN(F2)),1)

    copied down
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Split string into separate columns without delimiter

    Try . In I2 copied down.

    =LET(a,F2&G2&H2,b,MID(a,SEQUENCE(,LEN(a)),1),b)
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Split string into separate columns without delimiter

    Which Post of mine are you referring to when you say you do not understand?

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Split string into separate columns without delimiter

    it can be done with Power Query

    // Table1
    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        Type = Table.TransformColumnTypes(Source,{{"Cmp", Int64.Type}, {"Div", type text}, {"Role      ", type text}, {"Function  ", type text}, {"Sts", Int64.Type}, {"Option 1-9", type text}, {"Function keys", type text}, {"Option 10-99", type text}}),
        Split90 = Table.SplitColumn(Type, "Option 10-99", Splitter.SplitTextByRepeatedLengths(1), {"Option 10-99.1", "Option 10-99.2", "Option 10-99.3", "Option 10-99.4", "Option 10-99.5", "Option 10-99.6", "Option 10-99.7", "Option 10-99.8", "Option 10-99.9", "Option 10-99.10", "Option 10-99.11", "Option 10-99.12", "Option 10-99.13", "Option 10-99.14", "Option 10-99.15", "Option 10-99.16", "Option 10-99.17", "Option 10-99.18", "Option 10-99.19", "Option 10-99.20", "Option 10-99.21", "Option 10-99.22", "Option 10-99.23", "Option 10-99.24", "Option 10-99.25", "Option 10-99.26", "Option 10-99.27", "Option 10-99.28", "Option 10-99.29", "Option 10-99.30", "Option 10-99.31", "Option 10-99.32", "Option 10-99.33", "Option 10-99.34", "Option 10-99.35", "Option 10-99.36", "Option 10-99.37", "Option 10-99.38", "Option 10-99.39", "Option 10-99.40", "Option 10-99.41", "Option 10-99.42", "Option 10-99.43", "Option 10-99.44", "Option 10-99.45", "Option 10-99.46", "Option 10-99.47", "Option 10-99.48", "Option 10-99.49", "Option 10-99.50", "Option 10-99.51", "Option 10-99.52", "Option 10-99.53", "Option 10-99.54", "Option 10-99.55", "Option 10-99.56", "Option 10-99.57", "Option 10-99.58", "Option 10-99.59", "Option 10-99.60", "Option 10-99.61", "Option 10-99.62", "Option 10-99.63", "Option 10-99.64", "Option 10-99.65", "Option 10-99.66", "Option 10-99.67", "Option 10-99.68", "Option 10-99.69", "Option 10-99.70", "Option 10-99.71", "Option 10-99.72", "Option 10-99.73", "Option 10-99.74", "Option 10-99.75", "Option 10-99.76", "Option 10-99.77", "Option 10-99.78", "Option 10-99.79", "Option 10-99.80", "Option 10-99.81", "Option 10-99.82", "Option 10-99.83", "Option 10-99.84", "Option 10-99.85", "Option 10-99.86", "Option 10-99.87", "Option 10-99.88", "Option 10-99.89", "Option 10-99.90"}),
        Split24 = Table.SplitColumn(Split90, "Function keys", Splitter.SplitTextByRepeatedLengths(1), {"Function keys.1", "Function keys.2", "Function keys.3", "Function keys.4", "Function keys.5", "Function keys.6", "Function keys.7", "Function keys.8", "Function keys.9", "Function keys.10", "Function keys.11", "Function keys.12", "Function keys.13", "Function keys.14", "Function keys.15", "Function keys.16", "Function keys.17", "Function keys.18", "Function keys.19", "Function keys.20", "Function keys.21", "Function keys.22", "Function keys.23", "Function keys.24"}),
        Split9 = Table.SplitColumn(Split24, "Option 1-9", Splitter.SplitTextByRepeatedLengths(1), {"Option 1-9.1", "Option 1-9.2", "Option 1-9.3", "Option 1-9.4", "Option 1-9.5", "Option 1-9.6", "Option 1-9.7", "Option 1-9.8", "Option 1-9.9"})
    in
        Split9
    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)

Similar Threads

  1. [SOLVED] Separate Symbol and Number Into Different Columns With No Delimiter
    By corvus_t in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-04-2022, 08:50 AM
  2. [SOLVED] Split numbers from string to separate columns.
    By wherdzik in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-13-2022, 10:45 AM
  3. [SOLVED] Regex - Split string at fixed delimiter but keep "Groups" with same delimiter together
    By bakerman2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2021, 02:22 AM
  4. Macro to split string by line break delimiter
    By dbordon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2020, 05:30 PM
  5. Replies: 2
    Last Post: 04-09-2014, 11:48 AM
  6. [SOLVED] Split specific chars in one column to other columns with no delimiter
    By Fjalar in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2013, 12:28 PM
  7. [SOLVED]Separate cell string at the first delimiter (ex. space) - macro
    By sky123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2011, 05:46 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