+ Reply to Thread
Results 1 to 5 of 5

Question: How to manipulate list block data into tabular format?

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    NC, USA
    MS-Off Ver
    2010
    Posts
    2

    Question: How to manipulate list block data into tabular format?

    Hello, Excel team!

    I have a data set that is like this (data changed, but format the same):

    Column A | Column B
    Name | Joe
    Hair | Brown
    Height | 2m
    [-blank row-]
    Name | Sally
    Hair | Red
    Height | 1.7m
    [-blank row-]
    Name | Bobby
    Hair | Black
    Height | 1.9m

    etc....

    Unfortunately I have hundreds of these blocks, so I can't just copy and paste to transpose.

    I tried using a pivot table, but it didn't work out either. At least not just doing a basic data select and table generation.

    What's the best way to do this?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Question: How to manipulate list block data into tabular format?

    Insert a new row 1, and enter

    B1 Name
    C1 Hair
    D1 Height

    Get all your data from the first block next to the first entry of the first block using formulas:
    In C2 enter
    =B3
    In D2 enter
    =B4


    Select C2:D5 (including next to the separating blank row), and copy it. Then select from C6 to D one row beyond your last block of data, and paste. If you don't get formulas next to your last block of data, you did not select the correct number of rows (it has to be a multiple of 4, the size of your block.)

    Then copy C:D and paste values, sort based on C, delete column A, and you're done.

    Assuming that you don't have Hair and Height but something else, and maybe more, just extend the technique to your block size.
    Last edited by Bernie Deitrick; 07-29-2014 at 02:25 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    NC, USA
    MS-Off Ver
    2010
    Posts
    2

    Re: Question: How to manipulate list block data into tabular format?

    I'm not sure that would be the fastest way to get where I want to go though.

    I admit, I did give a kind of bad example.

    In reality, each data block has 26 rows, and I have 580+ of these data blocks I need to convert into a table.

  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: Question: How to manipulate list block data into tabular format?

    This might help you out: The basic formula entered into D2 (leaving column C empty if you like) and copy down. Then adjust the column reference in columns E and F and copy down.

    This assumes actual names to start in row 2.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------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

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Question: How to manipulate list block data into tabular format?

    Size does not matter. It will take you longer to read this message than to actually perform the steps.

    Insert a new row 1. Then in Cell B1, use the formula

    =INDEX($A$2:$A$27,COLUMN(A1))

    and copy across to cells C1:AA1.

    In cells C2, use the formula
    =OFFSET($B2,COLUMN(A1),0)
    and copy across to cells D2:AA2.

    Then copy D2:AA28, select D29:AA < row below your 580th data block> and paste. Then copy C:AA and paste values, sort based on column C, and delete column A. And you're done.

    For a macro:

    Please Login or Register  to view this content.

+ 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. Transpose data into a tabular format
    By fausto1234 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2012, 02:04 AM
  2. How to Convert Matrix format data into tabular format data
    By nishchints in forum Excel General
    Replies: 1
    Last Post: 02-22-2012, 03:53 PM
  3. Manipulate and arrange table data into summary list
    By DavidSpackman in forum Excel General
    Replies: 2
    Last Post: 07-28-2010, 12:57 AM
  4. Tabular format help
    By Passmore in forum Excel General
    Replies: 2
    Last Post: 08-11-2008, 08:30 AM
  5. Replies: 0
    Last Post: 02-15-2006, 02:15 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