+ Reply to Thread
Results 1 to 4 of 4

Split cells into multiple columns by carriage return

Hybrid View

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    Glasgow, UK
    MS-Off Ver
    2019
    Posts
    39

    Question Split cells into multiple columns by carriage return

    My data has multiple rows in one cell seperated by carriage return. I want to put each line of the cell into a new column. I have tried using Text to Columns with the Other Option under Delimiters being Ctrl + J. It only shows the first line of the cell. The subsequent lines of each cell are deleted.

    For example

    UNIT 1/1 SAMANTHA CRT
    BOXFIELD
    MELBOURNE

    becomes

    UNIT 1/1 SAMANTHA CRT

    BOXFIELD & MELBOURNE just disappear completely instead of moving to next column.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Split cells into multiple columns by carriage return

    Maybe use a formula...

    Data Range
    A
    B
    C
    D
    1
    UNIT 1/1 SAMANTHA CRT
    BOXFIELD
    MELBOURNE
    UNIT 1/1 SAMANTHA CRT
    BOXFIELD
    MELBOURNE


    This formula entered in B1 and copied across:

    =TRIM(MID(SUBSTITUTE(CHAR(10)&$A1&CHAR(10),CHAR(10),
    REPT(" ",255)),COLUMNS($B1:B1)*255,255))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-08-2015
    Location
    Glasgow, UK
    MS-Off Ver
    2019
    Posts
    39

    Re: Split cells into multiple columns by carriage return

    THANK YOU! That has done it!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Split cells into multiple columns by carriage return

    Good deal. Thanks for the feedback!

+ 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. Replies: 1
    Last Post: 01-15-2016, 09:59 AM
  2. Excel concatenate and carriage return by columns
    By highwayman in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-28-2013, 05:26 PM
  3. Carriage Return multiple entries one cell
    By jdbegg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2006, 08:53 PM
  4. Replies: 5
    Last Post: 04-19-2006, 03:50 PM
  5. Join 2 cells with carriage return in between
    By MaxBrit in forum Excel General
    Replies: 2
    Last Post: 01-12-2006, 06:18 AM
  6. [SOLVED] Text to columns delimited by carriage return
    By EMG03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2005, 04:05 PM
  7. [SOLVED] How do I convert text to columns when there is a carriage return?
    By Stumped in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2005, 02:06 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