+ Reply to Thread
Results 1 to 4 of 4

Need help filling in a table horizontally from a long string of data

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need help filling in a table horizontally from a long string of data

    New to the forum so hopefully I am posting in the proper section. Basically what I am doing is copying and pasting a long string of data that has been outputted from my PLC into a spreadsheet and attempting to organize the data into a table. The problem I am having is this needs to be filled horizontally, or vertically in multiples of 5. Example:

    Data comes in like this:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    I need it to be organized like this:
    1 2 3 4 5
    6 7 8 9 10

    Up to around 1500 data points. Is there an easy way to make this automatically as soon as the data is copied into the spreadsheet? Any help is greatly appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Need help filling in a table horizontally from a long string of data

    If your data is in column A starting in A1, down, create a table next to it (I started in C1)

    In D1:H1 enter 1, 2, 3, 4, 5
    in C2:C10 enter 1, 2, 3, 4 etc (extend the range as needed.)

    Then in D2, copied down and across, use this...
    =OFFSET($A$1,(D$1-1)+($C2*5)-5,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need help filling in a table horizontally from a long string of data

    Thanks! worked perfectly.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Need help filling in a table horizontally from a long string of data

    Happy to help and 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. Displaying data horizontally after a table filter
    By martinpgibson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2013, 06:16 PM
  2. [SOLVED] help with filling a table with data from another table on a true condition
    By derrickh13 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-14-2013, 04:44 PM
  3. using text data from one table and filling in the gaps in another.
    By X-tremejoe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2012, 08:43 AM
  4. Error using Clng function in vba to convert string to long data type
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2011, 06:12 AM
  5. Truncating Long Data String
    By redsoxtech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2008, 04:59 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