+ Reply to Thread
Results 1 to 10 of 10

Separating Data into Rows

  1. #1
    Registered User
    Join Date
    07-22-2015
    Location
    Seattle
    MS-Off Ver
    2013
    Posts
    3

    Separating Data into Rows

    Hello,

    I'm having issues separating cells into additional rows. I have fixed numbers in each cell. No success using text to columns - something keeps going wrong.

    206463044
    503525890
    949439581

    Ideally, I'd like them to look like:

    1. 2066463044
    2. 5035255890
    3. 9494399581

    Thanks! I'm horrible at Excel, but trying.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Separating Data into Rows

    Use this formula in B1 and copy down

    =TRIM(MID(SUBSTITUTE(CHAR(10)&$A$1,CHAR(10),REPT(" ",50)),50*ROWS($A$1:A1),50))

    Row\Col
    A
    B
    1
    206463044
    503525890
    949439581
    206463044
    2
    503525890
    3
    949439581
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Separating Data into Rows

    You could use a formula like this. I am starting the data in A5 and the formula is in B5
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Separating Data into Rows

    Oops, misread the problem....again

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Separating Data into Rows

    Took another look and came up with this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If data in say B14, the formula would be:

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


    AlKey's formula will do the same thing. That is you don't have to keep track of what row and column you are starting in as cell references are determining the start row.

    A
    B
    1
    206463044
    503525890
    949439581
    206463044
    2
    503525890
    3
    949439581
    Last edited by newdoverman; 07-22-2015 at 02:40 PM.

  6. #6
    Registered User
    Join Date
    07-22-2015
    Location
    Seattle
    MS-Off Ver
    2013
    Posts
    3

    Re: Separating Data into Rows

    Thank you AlKey! Does this formula work if I have up to 500 cells? Also, all are 10 digit numbers but some cells have 2 phone numbers, and some have up to 5, but they all need to be in an individual row.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Separating Data into Rows

    Quote Originally Posted by rookie2525 View Post
    Thank you AlKey! Does this formula work if I have up to 500 cells? Also, all are 10 digit numbers but some cells have 2 phone numbers, and some have up to 5, but they all need to be in an individual row.
    This is something that would work much better if extracted to the columns instead of down to the rows.

    like this:
    pull formula to the right until you see blanks and then down


    =TRIM(MID(SUBSTITUTE(CHAR(10)&$A1,CHAR(10),REPT(" ",50)),50*COLUMNS($A:A),50))

    Row\Col
    A
    B
    C
    D
    1
    206463044
    503525890
    949439581
    206463044 503525890 949439581
    2
    654987123
    459878652
    3219876548
    654987123 459878652 3219876548

  8. #8
    Registered User
    Join Date
    07-22-2015
    Location
    Seattle
    MS-Off Ver
    2013
    Posts
    3

    Re: Separating Data into Rows

    Thank you both, been a great help!!

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Separating Data into Rows

    You're welcome. Please don't forget to thank those who helped by clicking on Add Reputation *

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Separating Data into Rows

    If you want to convert AlKey's horizontal extraction to a column
    Enter in column H the following
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter in column I to remove all blank cells:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    206463044
    503525890
    949439581
    206463044 503525890 949439581 206463044 206463044
    2
    654987123
    459878652
    321987654
    206463044
    503525890
    654987123 459878652 321987654 206463044 503525890 503525890 503525890
    3
    654987123
    459878652
    321987654
    654987123 459878652 321987654 949439581 949439581
    4
    654987123
    5
    459878652
    6
    321987654
    7
    654987123 206463044
    8
    459878652 503525890
    9
    321987654 654987123
    10
    206463044 459878652
    11
    503525890 321987654
    12
    13
    654987123
    14
    459878652
    15
    321987654
    Last edited by newdoverman; 07-22-2015 at 04:17 PM.

+ 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 rows with different names and totals
    By Dan001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2015, 03:58 AM
  2. [SOLVED] Copying Rows and Separating Tables
    By shiningriver in forum Excel - New Users/Basics
    Replies: 21
    Last Post: 01-29-2014, 03:54 PM
  3. [SOLVED] Separating data with multiple delimiters into columns AND rows
    By CALALOO722 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2013, 08:13 AM
  4. Replies: 4
    Last Post: 11-09-2012, 01:17 PM
  5. Separating data in a row into new rows - can it be done?
    By MortenPetterson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2012, 10:18 AM
  6. Sorting numbers then separating odd row,even rows
    By vlady in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-08-2011, 09:47 PM
  7. Excel 2007 : Separating Data from Rows to a New Row
    By teh_siggy0731 in forum Excel General
    Replies: 1
    Last Post: 05-17-2010, 03:23 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