Frequency distribution of multiple variables in one table

felipeplatzer

New Member
Joined
Sep 15, 2018
Messages
1
Hi all,

I am analyzing a survey where people rank several product attributes on a scale from 1 to 5. I want a frequency distribution (of how many people selected 1,2,3,4,5) for all attributes in one table. Is this possible, preferably with PivotTables? I want to avoid using formulas like COUNTIF, because I want to be able to generate data cuts easily without re-writing the whole formula again.

Thanks a lot!

This is the raw data:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Product color[/TD]
[TD]Product look and feel[/TD]
[TD]Product price[/TD]
[TD]Product's ease of use[/TD]
[/TR]
[TR]
[TD]Respondent 1[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Respondent 2[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Respondent 3[/TD]
[TD]3[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Respondent 4[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[TD]...[/TD]
[/TR]
</tbody>[/TABLE]


This is the table I need:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Product color[/TD]
[TD]Product look and feel[/TD]
[TD]Product price[/TD]
[TD]Product's ease of use[/TD]
[/TR]
[TR]
[TD]% of respondents rating it 1[/TD]
[TD]20%[/TD]
[TD]20%[/TD]
[TD]0%[/TD]
[TD]70%[/TD]
[/TR]
[TR]
[TD]% of respondents rating it 2[/TD]
[TD]0%[/TD]
[TD]20%[/TD]
[TD]0%[/TD]
[TD]20%[/TD]
[/TR]
[TR]
[TD]% of respondents rating it 3[/TD]
[TD]40%[/TD]
[TD]20%[/TD]
[TD]0%[/TD]
[TD]10%[/TD]
[/TR]
[TR]
[TD]% of respondents rating it 4[/TD]
[TD]40%[/TD]
[TD]20%[/TD]
[TD]10%[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]% of respondents rating it 5[/TD]
[TD]0%[/TD]
[TD]20%[/TD]
[TD]90%[/TD]
[TD]0%[/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD]100%[/TD]
[TD]100%[/TD]
[TD]100%[/TD]
[TD]100%[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Welcome to the forum.

I can't figure a way to use a PT for this. But it's simpler to use a formula after converting the original data to an official Excel Table.

That way, the Table can have rows added or deleted and all referring formulas will automatically update. You will notice the Results table refers to the data in the Excel Table I called T_Response (which here is A1 to E5) and, accordingly, the formulas use Excel Table Nomenclature. If you are unfamiliar with Excel Tables and their nomenclature, let us know and we'll provide some edification.

I believe your results were not correct for the four respondents you show.

Copy the formula across and down.


Book1
ABCDE
1RespondentColourApppearencePriceUsability
2Respondent 11553
3Respondent 24451
4Respondent 33251
5Respondent 44351
6
7
8
9Results
10ResponseColourApppearencePriceUsability
11125%0%0%75%
1220%25%0%0%
13325%25%0%25%
14450%25%0%0%
1550%25%100%0%
16Total100%100%100%100%
Sheet33
Cell Formulas
RangeFormula
B11=COUNTIFS(T_Response[Colour],$A11)/COUNTA(T_Response[[Respondent]:[Respondent]])
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
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