Forum Discussion
Report: grouped by rows & columns (is this possible?)
Greetings everyone - report builders especially,
I have a batch of survey responses (Answer Text) and I'd like to view them grouped by users (rows) & questions (column headings). Is this possible to achieve in Excel? Sample data attached.
All input welcome.
Thanks!
Steve
8 Replies
- SergeiBaklanDiamond Contributor
If with legacy formulas for such model
in F3
=IFERROR( INDEX($B$3:$B$22, AGGREGATE(15,6, 1/(COUNTIF($F$2:F2,$B$3:$B$22)=0)/ ($B$3:$B$22<>"")* (ROW($B$3:$B$22)-ROW($B$2)),1)), "")drag down till empty cells appear
in G2
=IFERROR( INDEX($C$3:$C$22, AGGREGATE(15,6,1/(COUNTIF($F$2:F$2,$C$3:$C$22)=0)* (ROW($B$3:$B$22)-ROW($B$2)),1)), "")drag to the right
in G3
=IFERROR( INDEX($D$3:$D$22, MATCH(G$2, INDEX($C$3:$C$22,MATCH($F3,$B$3:$B$22,0)): INDEX($C$3:$C$22,ROWS($C$3:$C$22)),0)+ MATCH($F3,$B$3:$B$22,0)-1), "")drag down and to the right.
- stevep17Copper Contributor
SergeiBaklan thanks very much for taking the time to respond.
I am going to give your method a try.
Much appreciated,
Steve
- Riny_van_EekelenPlatinum Contributor
stevep17 "Is this possible to achieve in Excel?" The answer is Yes!
How exactly is a bit difficult to explain in words, without some real data to play with. From looking at the pictures, I would first connect to and transform the data a bit with Power Query, then load the data into the Data Model. Then you need som DAX code that allows the text based answers to be entered in the value field of a pivot table.
Now, this may sound all very alien, if you have never seen or heard of this before. And if you are on a Mac, you can forget it altogether. So, if you can provide a file with some real, but anonymous data, I or someone else can get you started.
- stevep17Copper ContributorAnd I have used Power Query before to help solve a different Excel problem. It's a great plug-in!
- Riny_van_EekelenPlatinum Contributor
stevep17 Something like in the attached file perhaps. First a bit of cleaning up in PQ, then some Power Pivot.
- stevep17Copper Contributor
Riny_van_Eekelen thanks very much for your response.
I am attaching a sample file as you've requested.
Any further input would be very welcome.
Thanks again,
Steve