Hi I'm trying to create a pivot table in structure shown in row 17 downwards (i.e. counting the number of users by response, but need to break it down by category and question.
I'm getting stuck because I can't work out how to arrange the pivot table to do that. I guess I need to transform my data first, but would appreciate some guidance on how to do that. Can anybody help?
I'm getting stuck because I can't work out how to arrange the pivot table to do that. I guess I need to transform my data first, but would appreciate some guidance on how to do that. Can anybody help?
Book1 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | |||
5 | Source Data | |||||||||||||||||
6 | ||||||||||||||||||
7 | User | Q1 | Q1 Category | Answer 1 | Q2 | Q2 Category | Answer 2 | Q3 | Q3 Category | Answer 3 | Q4 | Q4 Category | Answer 4 | Q5 | Q5 Category | Answer 5 | ||
8 | User 1 | Age? | Physical | High | Height? | Physical | Low | Shoe Size? | Physical | Medium | Preferred food? | Preference | High | Preferred Colour? | Preference | High | ||
9 | User 2 | Age? | Physical | High | Height? | Physical | High | Shoe Size? | Physical | Medium | Preferred food? | Preference | Low | Preferred Colour? | Preference | Low | ||
10 | User 3 | Age? | Physical | Medium | Height? | Physical | High | Shoe Size? | Physical | Medium | Preferred food? | Preference | Low | Preferred Colour? | Preference | Low | ||
11 | User 4 | Age? | Physical | Medium | Height? | Physical | High | Shoe Size? | Physical | High | Preferred food? | Preference | Low | Preferred Colour? | Preference | Medium | ||
12 | User 5 | Age? | Physical | Medium | Height? | Physical | High | Shoe Size? | Physical | High | Preferred food? | Preference | Medium | Preferred Colour? | Preference | Medium | ||
13 | User 6 | Age? | Physical | Low | Height? | Physical | Medium | Shoe Size? | Physical | Low | Preferred food? | Preference | Low | Preferred Colour? | Preference | Medium | ||
14 | ||||||||||||||||||
15 | ||||||||||||||||||
16 | Desired Output - ideally pivot table: | |||||||||||||||||
17 | High | Medium | Low | |||||||||||||||
18 | Physical | |||||||||||||||||
19 | Age? | 2 | 3 | 1 | ||||||||||||||
20 | Height? | 4 | 1 | 1 | ||||||||||||||
21 | Shoe Size? | 2 | 3 | 1 | ||||||||||||||
22 | Preference | |||||||||||||||||
23 | Preferred food? | 1 | 1 | 4 | ||||||||||||||
24 | Preferred Colour? | 1 | 3 | 2 | ||||||||||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C19:E19 | C19 | =COUNTIFS(Data_Table[Answer 1],C$17) |
C20:E20 | C20 | =COUNTIFS(Data_Table[Answer 2],C$17) |
C21:E21 | C21 | =COUNTIFS(Data_Table[Answer 3],C$17) |
C23:E23 | C23 | =COUNTIFS(Data_Table[Answer 4],C$17) |
C24:E24 | C24 | =COUNTIFS(Data_Table[Answer 5],C$17) |