+ Reply to Thread
Results 1 to 6 of 6

Separating Line of Data in different Cells

  1. #1
    Registered User
    Join Date
    08-05-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    22

    Question Separating Line of Data in different Cells

    Hello Guys,

    I was playing with RIGH, MID, LEFT and LEN to figure this out but it seams so complicated to me. I have 50+ Rows of data, all in one cell. Ex:

    A1: Garden Grove $12.44 $17.65 70.5% $10.22 450
    B1: Harbor City $12.44 $17.65 60.5% $10.22 460

    I want to separate all values in this line in to individual cells.

    Assuming the above line is in Cell A1, I need a formula to read A1 and put "Garden Grove" in A2, $12.44 in A3, $17.65 in A4, 70.5% in A5, $10.22 in A6, 450 in A7

    Can anyone help me with it?

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Separating Line of Data in different Cells

    Perhaps something like this.

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    1
    Raw data Location of seperators Total
    2
    $ $ $ Length+1 Data 1 Data 2 Data 3 Data 4 Data 5 Data 6
    3
    Garden Grove $12.44 $17.65 70.5% $10.22 450 14 21 27 34 40 44 Garden Grove 12.44 17.65 70.5% 10.22 450
    4
    Harbor City $12.44 $17.65 60.5% $10.22 460 13 20 26 33 39 43 Harbor City 12.44 17.65 60.5% 10.22 460


    C2:G2 are the seperators (the blank cells actually contain a space in there)
    Formula in C3 (copied across to G3 and down)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula in H3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Data in J3 (copied across to O3 and down)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or see attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-05-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    22

    Re: Separating Line of Data in different Cells

    Thank you quekbc! I really Appreciate that.

  4. #4
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Separating Line of Data in different Cells

    Not a problem.

    Just an additional note, you may have to add TRIM function to get rid of trailing spaces, and maybe VALUE function to convert them to numbers.

    Also, if this resolves your initial query, can you kindly mark this thread as Solved by clicking on Thread Tools and subsequently Mark This Thread as Solved.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Separating Line of Data in different Cells

    Hi area51+tax and welcome to the forum,

    Using another method I like to call "pad with spaces and then trim" this one formula in B1 might be easier.

    =TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",LEN($A1))),(COLUMNS($B1:B1)-1)*LEN($A1)+1,LEN($A1)))

    See it in the attached, where you can put it in B1, pull it across and down to break strings up into individual cells using spaces.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Registered User
    Join Date
    08-05-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    22

    Re: Separating Line of Data in different Cells

    Thank you Marvin. I used a combo of both. All Formulas are correct now. You guys helped me BIG Time! Appreciate your fast response.

+ 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. Separating multiple data separated by a comma into single cells.
    By sgmgrider in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2015, 05:58 PM
  2. Separating numbers from words in cells in large data file
    By cbarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2015, 07:06 AM
  3. VBA - TextToColumns separating text at line breaks
    By jmapark91 in forum Excel General
    Replies: 4
    Last Post: 11-12-2014, 01:09 PM
  4. [SOLVED] Separating multiple data (w delimiter) from one cell to many cells
    By rocketeer425 in forum Excel General
    Replies: 6
    Last Post: 02-14-2014, 03:56 AM
  5. Separating data with spaces and putting in two different cells
    By multimediocrity in forum Excel General
    Replies: 7
    Last Post: 02-19-2013, 01:52 AM
  6. Replies: 2
    Last Post: 08-14-2012, 01:19 PM
  7. Separating cell data into 2 new cells.
    By Joe@WSC in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 07-07-2009, 10:10 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