Solved

Challenging Transpose (Excel)

Posted on 2013-05-16
2
330 Views
Last Modified: 2013-05-16
I need some help with automating (maybe via macro) a "2-step transpose" function.

Please see attached XLS for details.   I've highlighted the cells that need to be transposed AND realigned.

The rows are indicative of a survey response.   Right now, I have 3 test surveys; however, that number will grow.

Once transposed, the columns will be remain at four.   So, a 4th user would populate cell range F49:J59.

The data shown is cell range F13:J47 (for 3 users) is the desired final product.   The data shown as step #1 (A13:D59) does NOT need to be displayed.   (It's merely included for illustrating the current manual process).

Does anyone know how to automate this process?    I'd prefer to NOT just use cell reference and keep copying them down.   Instead, I'd like to select the cell range of survey participants and then, e.g., run a macro to perform the transpose/realign functions.

Thanks in advance,
EEH
Transpose.xls
0
Comment
Question by:ExpExchHelp
2 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39171925
The following formula may be copied down and across to return the properly transposed values:
=IF(SUMPRODUCT((INDEX(Data,1,)=$A13)*INDEX(Data,COUNTIF($A$13:$A13,$A13)+1,))=0,"",INDEX(Data,COUNTIF($A$13:$A13,$A13)+1,MATCH($A13,INDEX(Data,1,),0)+(COLUMNS($B13:B13)-1)*11))

This formula uses a named range Data. In the sample workbook, Data refers to cells A2:AR5 (in other words, it includes both the header labels and the responses).

The formula is shown in action in worksheet "Formula Solution"
TransposeQ28130165.xls
0
 

Author Comment

by:ExpExchHelp
ID: 39172046
byundt:

As always, you're providing the most excellent solutions!!!

Moving the transpose function to a separate tab should be straight-forward now.

Again, thanks!

EEH
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question