+ Reply to Thread
Results 1 to 4 of 4

need help converting a single column of data to a table

  1. #1
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    need help converting a single column of data to a table

    I occasionally save a web page as html, then open it in order to get data.

    So I save as html, open in Excel, and the result is a long, single column of data. However to be properly presented, I need to put the data into a 13 column table.

    I tried using various OFFSET formulas to try to get it right, but I'm not succeeding. I've attached an example showing the raw data (in Column A) then the beginning of the desired table (beginning in cell E4).

    (Note that Excel's Get Data from Web function often works on websites I use, but in this case it doesn't work. And the transpose feature of course becomes tedious when the column of data is hundreds or thousands of rows).

    Thank You!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: need help converting a single column of data to a table

    Put this formula in cell B27:

    =IF(A26="",MAX(B$26:B26)+1,"")

    then copy it down to the bottom of your data (i.e. B739 in your sample file). Then you can use this formula in cell F4:

    =IF(ROWS($1:1)>MAX($B:$B),"",INDEX($A:$A,MATCH(ROWS($1:1),$B:$B,0)+COLUMNS($F:F)-1))

    Copy this across to R4, and then you can copy the formulae in F4:R4 down until you start to get blanks.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    12-03-2008
    Location
    Key West, FL
    MS-Off Ver
    365 Apps for Enterprise
    Posts
    665

    Re: need help converting a single column of data to a table

    Thanks Pete! A clever solution!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: need help converting a single column of data to a table

    You're welcome - thanks for the rep.

    Pete

+ 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. [SOLVED] Converting multiple row data to single column data.
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2019, 08:32 AM
  2. Converting an array of data into multiple arrays based on a single column values
    By bjcowen9000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2018, 01:13 PM
  3. Converting a range of data into a single column
    By MrCD in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2014, 12:00 PM
  4. [SOLVED] Data Table Converting in one column
    By Martinians in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-28-2014, 11:38 PM
  5. Replies: 3
    Last Post: 12-16-2013, 01:34 AM
  6. Converting single column into multiple rows with irregular data
    By longhornpete in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2012, 10:27 AM
  7. Converting an array of data into a single column
    By Raj in forum Excel General
    Replies: 0
    Last Post: 08-15-2006, 04:25 PM

Tags for this Thread

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