+ Reply to Thread
Results 1 to 6 of 6

Convert Long Rows into Compact Table

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Convert Long Rows into Compact Table

    I have data in 300 long rows. I wish to compact it into a table format for presentation purposes. Cut and paste will take too long. The attachment shows the basic idea of what I am trying to do (I have shortened the rows for purposes of example). I have tried creating a macro involving a do loop, but my knowledge of basics is rusty, and I can't get it to work. I would appreciate some formulas. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Convert Long Rows into Compact Table

    This looks good
    Input on Sheet1, output on Sheet3, adjust as required

    Please Login or Register  to view this content.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Convert Long Rows into Compact Table

    Thank you, Special-k. As I understand your response, I should name the spreadsheet with the data "Sheet 1". I should have another spreadsheet in the workbook named "Sheet 3". I should enter the macro on Sheet 1. Is that correct?

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Convert Long Rows into Compact Table

    Or change the name of Sheet 1 and Sheet 3 in the macro to the names of your spreadsheets

  5. #5
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Convert Long Rows into Compact Table

    Thank you, Special K.
    You can tell by now that I am not familiar with macro's at this point. I get an error message, and when I press debug, this is highlighted: Lastrow = Worksheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Convert Long Rows into Compact Table

    Change the reference to "Sheet1" to your source spreadsheet in that line as well.

+ 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. Pivot Table Columns, need to be more compact
    By RAdams1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-23-2017, 01:54 PM
  2. [SOLVED] Convert Rows to a Table
    By Seraph122 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2013, 03:45 AM
  3. Replies: 1
    Last Post: 11-29-2012, 06:24 PM
  4. [SOLVED] Fetching data from a table into a more compact form
    By Gomas in forum Excel General
    Replies: 2
    Last Post: 09-23-2012, 12:40 PM
  5. Replies: 0
    Last Post: 06-25-2012, 03:28 PM
  6. Convert long line into multiple rows
    By Shai in forum Excel General
    Replies: 2
    Last Post: 05-03-2009, 07:29 AM
  7. Convert rows to one single long column?
    By Spalding in forum Excel General
    Replies: 2
    Last Post: 11-21-2005, 09:39 AM

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