Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Urgent Excel Pivot table help - Filtering or grouping on rows which are column headers

$
0
0

Hi

I have a very large table that i'm trying to summarise via pivots. Generally it works very well, but i have run into an obstacle i'm battling to get around.

I have a question with 7 answers where candidates can select as many as apply.

If yes, why did you move?

Please choose all that apply:

  • I moved to be closer to my current job (or a job I had)I moved to be closer to my current job (or a job I had)
  • I moved to be closer to work opportunities i.e. a place where I might be able to find a jobI moved to be closer to work opportunities i.e. a place where I might be able to find a job
  • My family or partner moved and I moved with themMy family or partner moved and I moved with them
  • I moved because I could afford better accommodation and/or to live in a nicer areaI moved because I could afford better accommodation and/or to live in a nicer area
  • I moved because I/we could no longer afford the rent or the bank repayments on my/our previous placeI moved because I/we could no longer afford the rent or the bank repayments on my/our previous place
  • I was evicted from my previous placeI was evicted from my previous place
  • No answerNo answer


Each answer can be "Yes, No, or No Answer". The cells by default have a "N/A" answer in them, in case the candidates were directed around this question. If they got to this page of questions, then the default answer is NO. If they tick a box, obviously it becomes a YES.

The columns I'm working with for this pivot table are as follows:

ID - Category - Q14.1 - Q14.2 - Q14.3 - Q14.4 - Q14.5 - Q14.6 - Q14.7 (where each of these Q columns correspond to one of the tick box options above).

Sample of data:

idIQ3Q14[1]Q14[2]Q14[3]Q14[4]Q14[5]Q14[6]Q14[7]
7NothingN/AN/AN/AN/AN/AN/AN/A
8NothingN/AN/AN/AN/AN/AN/AN/A
9NothingN/AN/AN/AN/AN/AN/AN/A
11CorporateNoNoNoNoNoYesNo
12CorporateN/AN/AN/AN/AN/AN/AN/A
13NothingN/AN/AN/AN/AN/AN/AN/A
15CorporateN/AN/AN/AN/AN/AN/AN/A
16NothingNoNoNoNoNoNoNo
17CorporateN/AN/AN/AN/AN/AN/AN/A
18NothingNoNoNoNoNoYesNo
19CorporateN/AN/AN/AN/AN/AN/AN/A
20CorporateNoYesNoNoNoNoNo
21CorporateN/AN/AN/AN/AN/AN/AN/A
22CorporateN/AN/AN/AN/AN/AN/AN/A
25RetailN/AN/AN/AN/AN/AN/AN/A
26RetailN/AN/AN/AN/AN/AN/AN/A

The Corporate, Retail and Nothing need to appear as column heads. The Q14.1 - Q14.7 need to appear as rows, preferably group by Yes and No.

Currently, the Rows are labelled Yes, No and N/A.

What I'd like to see is this:

If yes, why did you move?CorporateNothingRetailTotal
Yes    
 I moved to be closer to my current job (or a job I had) 19152458
 I moved to be closer to work opportunities i.e. a place where I might be able to find a job 63413
My family or partner moved and I moved with them 81413
 I moved because I could afford better accommodation and/or to live in a nicer area0167
I moved because I/we could no longer afford the rent or the bank repayments on my/our previous place 0022
 I was evicted from my previous place 1102
 No answer 0000
 34214095
No    
 I moved to be closer to my current job (or a job I had) 19152458
 I moved to be closer to work opportunities i.e. a place where I might be able to find a job 63413
My family or partner moved and I moved with them 81413
 I moved because I could afford better accommodation and/or to live in a nicer area0167
I moved because I/we could no longer afford the rent or the bank repayments on my/our previous place 0022
 I was evicted from my previous place 1102
 No answer 0000
 34214095

Any ideas?


Viewing all articles
Browse latest Browse all 11829


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>