+ Reply to Thread
Results 1 to 3 of 3

Transpose a table and fill empty cells with responses

  1. #1
    Registered User
    Join Date
    11-20-2017
    Location
    Berlin
    MS-Off Ver
    15.40 Mac
    Posts
    1

    Transpose a table and fill empty cells with responses

    Dear Forum Members,

    I want to transpose a table and fill empty cells with responses as can be seen in the attached image.

    So the steps that need to be performed are

    1. Transpose Answers by ID and put them into a column
    2. Take the Question from Row 1 and put them in the next column, do this for each ID
    3. Take the ID, put it into the next row and copy it for every single question&answer set.

    Can you help me with this?

    Kindest regards

    Screen Shot 2017-11-20 at 13.09.05.png

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

    Re: Transpose a table and fill empty cells with responses

    For your example layout, in A9 use

    =IFERROR(INDEX($A$3:$A$5,INT((ROW(A1)-1)/COUNTA($1:$1)+1)),"")

    In B9, use

    =IF(A9="","",INDEX($1:$1,1,MOD((ROW(A1)-1),COUNTA($1:$1))+2))

    In C9, use

    =IF(A9="","",OFFSET($B$3,INT((ROW(A1)-1)/COUNTA($1:$1)),MOD((ROW(A1)-1),COUNTA($1:$1))))

    and copy down until the formulas return blanks.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Transpose a table and fill empty cells with responses

    Or try this without the use of OFFSET
    In A9, B9 and C9 respectively, and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

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

    Where A1 is =COUNTA($2:$2)
    See the file
    Attached Files Attached Files

+ 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. copy current cells and fill the empty cells below it consecutively
    By jitterbug888 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-09-2016, 10:34 PM
  2. Using Data from 1 table to fill an empty one based on 2 criteria
    By moggal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2016, 09:53 PM
  3. [SOLVED] Fill Empty Cells
    By srikanthk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-30-2012, 08:13 AM
  4. Fill empty cells with a 0
    By vbjon in forum Excel General
    Replies: 3
    Last Post: 08-05-2008, 10:44 PM
  5. [SOLVED] Fill empty cells
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2006, 11:50 AM
  6. [SOLVED] Macro to transpose data to fill blank cells in table
    By nospaminlich in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-29-2005, 06:05 AM

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