Pivot Tables: Using Multiple fields in a single table

DrRichS

New Member
Joined
Jan 11, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

I've just started trying to use pivot tables. I surveyed some students using Forms and have downloaded the results. One of questions was "how do you rate the following in importance" Job Security, Co-workers, Public Facing, etc etc. So assentially they had 10 questions that they could answer Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree.

What i'd ideally like is the column headings to be "Agree, Neutral etc" and the row headings to be the "questions" and then for it to count the values. However, it always seems to try and nest the questions and i can't get it to work... i have attached an image to show the pivot table and below it what i'd like...

Any ideas?

Many thanks
RIchard
 

Attachments

  • Excel Pivot Table Image.PNG
    Excel Pivot Table Image.PNG
    32 KB · Views: 21

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Its going to depend how your underlying data is structured. See if this helps.

Book4
ABCDE
1
2TopicTypeCount of Agree StronglyCount of NeutralCount of Agree
3Work FlexibilityCoworker21
4Job security12
5Work Flexibility Total222
6Grand Total222
7
8
9
10TopicTypeAgree StronglyAgreeNeutral
11Work FlexibilityCoworkerY
12Work FlexibilityJob securityY
13Work FlexibilityCoworkerY
14Work FlexibilityJob securityY
15Work FlexibilityCoworkerY
16Work FlexibilityJob securityY
17
Sheet1


1673437147946.png
 
Upvote 0
Hi @Alex Blakenburg - thanks for getting back to me. it isn't quite working because i think my original data is a little different to yours. ive posted another screen grab. each row is a different respondent so i'm trying to count how many agree etc.

Ideally i'd end with a table which has "Agree Strongly - Agree - Neutral - Disagree-Disagree Strongly" as the column headers, and each row would be the category "Coworker - Job Security - Work Flexibility" and then it would have the counts

Coworker relationshipsJob SecurityWork Flexibility (work from home / flexitime / not shift work)
AgreeAgreeAgree
AgreeAgree StronglyAgree
AgreeAgree StronglyAgree Strongly
AgreeAgreeAgree
AgreeAgree StronglyAgree
AgreeAgree StronglyAgree
NeutralAgree StronglyNeutral
AgreeAgree StronglyNeutral
NeutralNeutralNeutral
AgreeAgreeNeutral
AgreeAgreeNeutral
Agree StronglyAgree StronglyDisagree
DisagreeAgreeNeutral
AgreeAgreeNeutral
AgreeAgreeNeutral
AgreeAgree StronglyNeutral
Agree StronglyAgree StronglyAgree Strongly
Agree StronglyAgree StronglyAgree
Agree StronglyAgreeAgree
AgreeAgree StronglyAgree Strongly
AgreeAgree StronglyAgree
Agree StronglyAgree StronglyNeutral
NeutralAgreeAgree
NeutralNeutral
AgreeAgreeNeutral
AgreeNeutralDisagree
 

Attachments

  • Excel Pivot Table Image v2.PNG
    Excel Pivot Table Image v2.PNG
    20.3 KB · Views: 13
Upvote 0
You can't use a pivot table with that layout.
You can use Power Query to transpose the data and either output it as a pivot table or summarise it using PQ.
Since you have MS 365 you can probably also do it using formulas.
 
Upvote 0
Solution
@Alex Blakenburg Thanks very much for letting me know. I was going to do it a long winded way wiht formulas etc but people rave about pivot tables so thought i'd learn about them. If you have a second, Can you explain briefly why pivot tables aren't suitable here? it seems like it would be quite a useful / easy attribute for pivot tables?
 
Upvote 0
Pivot tables are great but they expect the data to be in a database layout.
ie each row is a record and the value of every item in that row belongs to the same record / item
The data in your rows are not related. You create a pivot on just each column but that would be a bit cumbersome.

You will probably find people are now talking about Power Query like they used to talk about pivot tables, so have a look at a couple of videos and see if it peaks your interest.

Sample of what a pivot built on just one column would look like.

Book1
GHIJK
40Coworker relationships
41AgreeAgree StronglyDisagreeNeutral
42Count of Coworker relationships16514
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top