+ Reply to Thread
Results 1 to 7 of 7

split lines to columns

  1. #1
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    split lines to columns

    Dear excel experts,

    I would need to extract text lines from a single cell and distribute the result in separated columns.
    Lines are separated by CHAR10. I would need a formula instead of using the "text to column" wizard.
    All my cells are structured like this with number at the beginning:

    1. GMI calibration using SAPHIR, should go to topic F on CAL/VAL
    2. interesting inter-satellite calibration approach, could be moved as suggested above!
    3.
    4.
    5.


    if possible I would prefer to only extract the 2 first lines and not 3.,4.,5.
    Could someone help me to find the best way to handle this?

    thanks!
    Franck
    Last edited by franck.so; 03-09-2014 at 01:35 PM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: split lines to columns

    Hello and Welcome to the forum Frank ! Can you please upload a sample book with atleast 10-15 rows of data and results expected to work with

    to attach go to advanced --> select paper clip icon Or Manage attachment
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: split lines to columns

    thanks for your swift answer!
    Here attached a sample of the data (first sheet) and result expected (second sheet)
    Hope this will help
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: split lines to columns

    Assuming your data is in A1, try below in B1
    =TRIM(MID(SUBSTITUTE($A1,CHAR(10),REPT(" ",500)),((COLUMN(A1)-COLUMN($A$1))*500)+1,500))
    then drag to right till Column C

    Hope this helps

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: split lines to columns

    FInd attached !
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: split lines to columns

    Thanks Hemesh and sorry for my late reply. This works fine and even if the formula is a bit complicated for me to understand, it helps and I can use it in my excel sheet.
    Thanks again for you very efficient support!

    Franck

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: split lines to columns

    Hello Franck ! Thanks for the feedback ! IF your query is solved then mark thread as solved !

+ 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. How to split the lines in a cell into multiple rows.
    By narayana_ou@yah in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-23-2014, 04:19 AM
  2. [SOLVED] How to Split VBA code in New lines
    By naveenmarapaka in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2014, 02:19 AM
  3. macro to autofilter and copy first 15 lines visible lines in columns D:E
    By Juraj123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2013, 03:40 AM
  4. Importing from access and need to split lines
    By SallyB in forum Excel General
    Replies: 1
    Last Post: 03-11-2013, 02:26 AM
  5. [SOLVED] Split Wrapped Text (Multiple Lines) in A Cell to Multiple Columns
    By csmiin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2012, 09:15 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