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:

Product colorProduct look and feelProduct priceProduct's ease of use
Respondent 11553
Respondent 24451
Respondent 33251
Respondent 44351
...............

<tbody>
</tbody>


This is the table I need:

Product colorProduct look and feelProduct priceProduct's ease of use
% of respondents rating it 120%20%0%70%
% of respondents rating it 20%20%0%20%
% of respondents rating it 340%20%0%10%
% of respondents rating it 440%20%10%0%
% of respondents rating it 50%20%90%0%
Total100%100%100%100%

<tbody>
</tbody>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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