daniel_san
New Member
- Joined
- Apr 6, 2017
- Messages
- 8
Hi, I’m hoping one of you can help me. I have built a pivot table to display the results of a survey. One of the survey questions allows multiple answers, unfortunately the answers are in one string (see below). I am unable to change how I receive the results.
“Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance”
The pivot table obviously counts the number of occurrences for each response, but due to different strings of answers, it only counts where a string is identical. For example below, “Choice of accessories” appears 275 times whereas “Choice of accessories;Easy to use” appears 9 times etc.
[B]Excel 2010[/B][TABLE]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]What attracted you to this item? (Please select up to 3)[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD]Choice of accessories[/TD]
[TD="align: right"]275[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD]Choice of accessories;Easy to use[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance;Previous experience of Russell Hobbs;Quality;Reliability;Stylish;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance;Russell Hobbs reputation;Special offer[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Size of product/space saving;Stylish;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Powerful performance;Product features;Quality;Russell Hobbs reputation;Safe;Stylish;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]22[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Powerful performance;Product features;Safe;Size of product/space saving;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]23[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Product features;Safe[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]24[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Lightweight;Powerful performance;Product features;Size of product/space saving;Stylish[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Quality;Reliability;Russell Hobbs reputation;Safe;Stylish;Special offer[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]26[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Length of guarantee;Lightweight[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]27[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Length of guarantee;Powerful performance;Previous experience of Russell Hobbs;Quality;Reliability;Russell Hobbs reputation;Safe;Stylish;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]28[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Length of guarantee;Quality;Russell Hobbs reputation;Stylish;Special offer[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
[CENTER][COLOR=#161120][B]Sheet4[/B][/COLOR][/CENTER]
I’m only interested in counting the answers individually, e.g. “Choice of accessories” and “Easy to use” etc. So this would involve summing column B for each corresponding row a specific answer appears in a string. For example, the first three rows, “Choice of accessories” appears in each row, resulting in summing 275+9+13 .
To do this I have built a table on a separate worksheet which reads from the pivot table (see below).
[B]Excel 2010[/B][TABLE]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="bgcolor: #FFC000"]What attracted you to this item? (can select up to 3)[/TD]
[TD]No. of Responses[/TD]
[TD]Percentage[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Not applicable - received as a gift[/TD]
[TD="align: right"] 146[/TD]
[TD="align: right"]0.3%[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Product features[/TD]
[TD="align: right"] 1,825[/TD]
[TD="align: right"]3.4%[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]Choice of accessories[/TD]
[TD="align: right"] 376[/TD]
[TD="align: right"]0.7%[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]Quality[/TD]
[TD="align: right"] 2,316[/TD]
[TD="align: right"]4.4%[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]Ease of use[/TD]
[TD="align: right"] 2,241[/TD]
[TD="align: right"]4.2%[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Reliability[/TD]
[TD="align: right"] 1,667[/TD]
[TD="align: right"]3.1%[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD]Energy efficient and eco friendly features[/TD]
[TD="align: right"] 1,372[/TD]
[TD="align: right"]2.6%[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD]Russell Hobbs reputation[/TD]
[TD="align: right"] 2,685[/TD]
[TD="align: right"]5.1%[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD]Fast results/time saving[/TD]
[TD="align: right"] 1,512[/TD]
[TD="align: right"]2.8%[/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]Safe[/TD]
[TD="align: right"] 966[/TD]
[TD="align: right"]1.8%[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD]Length of guarantee[/TD]
[TD="align: right"] 1,753[/TD]
[TD="align: right"]3.3%[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD]Size of product/space saving[/TD]
[TD="align: right"] 921[/TD]
[TD="align: right"]1.7%[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD]Lightweight[/TD]
[TD="align: right"] 1,297[/TD]
[TD="align: right"]2.4%[/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD]Stylish[/TD]
[TD="align: right"] 2,070[/TD]
[TD="align: right"]3.9%[/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD]Powerful performance[/TD]
[TD="align: right"] 1,407[/TD]
[TD="align: right"]2.7%[/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD]Value for money/special offer[/TD]
[TD="align: right"] 2,393[/TD]
[TD="align: right"]4.5%[/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD]Previous experience of Russell Hobbs[/TD]
[TD="align: right"] 2,009[/TD]
[TD="align: right"]3.8%[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD]Well designed[/TD]
[TD="align: right"] 2,085[/TD]
[TD="align: right"]3.9%[/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD]Total no. of people who responded[/TD]
[TD="align: right"] 53,093[/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[CENTER][COLOR=#161120][B]Sheet2[/B][/COLOR][/CENTER]
This table uses the below formula which strips out and counts every instance of specific answers in column A of the pivot table (it counts each row the answer appears in a string).
“=SUM(LEN(Sheet4!A:A)-LEN(SUBSTITUTE(Sheet4!A:A,"Not applicable - received as a gift","")))/LEN("Not applicable - received as a gift")”
However, this is only half of what I need. I also need the table to not only strip out every instance of a specific answer, e.g. “Choice of accessories” and count it, I then need it to sum the corresponding number in column B of the pivot table which is the number of instances that particular string appears in the data. Is this possible by adapting the existing formula or would it need an entirely new formula?
Any help any of you could provide would be massively appreciated as I’ve been scratching my head on this for the last two days. You’re my last resort!
“Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance”
The pivot table obviously counts the number of occurrences for each response, but due to different strings of answers, it only counts where a string is identical. For example below, “Choice of accessories” appears 275 times whereas “Choice of accessories;Easy to use” appears 9 times etc.
[B]Excel 2010[/B][TABLE]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]What attracted you to this item? (Please select up to 3)[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD]Choice of accessories[/TD]
[TD="align: right"]275[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD]Choice of accessories;Easy to use[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance;Previous experience of Russell Hobbs;Quality;Reliability;Stylish;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Powerful performance;Russell Hobbs reputation;Special offer[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Lightweight;Size of product/space saving;Stylish;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Powerful performance;Product features;Quality;Russell Hobbs reputation;Safe;Stylish;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]22[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Powerful performance;Product features;Safe;Size of product/space saving;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]23[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Length of guarantee;Product features;Safe[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]24[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Lightweight;Powerful performance;Product features;Size of product/space saving;Stylish[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Fast results/time saving;Quality;Reliability;Russell Hobbs reputation;Safe;Stylish;Special offer[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]26[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Length of guarantee;Lightweight[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]27[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Length of guarantee;Powerful performance;Previous experience of Russell Hobbs;Quality;Reliability;Russell Hobbs reputation;Safe;Stylish;Special offer;Well designed[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD="align: center"]28[/TD]
[TD]Choice of accessories;Easy to use;Energy efficient and eco friendly features;Length of guarantee;Quality;Russell Hobbs reputation;Stylish;Special offer[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
[CENTER][COLOR=#161120][B]Sheet4[/B][/COLOR][/CENTER]
I’m only interested in counting the answers individually, e.g. “Choice of accessories” and “Easy to use” etc. So this would involve summing column B for each corresponding row a specific answer appears in a string. For example, the first three rows, “Choice of accessories” appears in each row, resulting in summing 275+9+13 .
To do this I have built a table on a separate worksheet which reads from the pivot table (see below).
[B]Excel 2010[/B][TABLE]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="bgcolor: #FFC000"]What attracted you to this item? (can select up to 3)[/TD]
[TD]No. of Responses[/TD]
[TD]Percentage[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Not applicable - received as a gift[/TD]
[TD="align: right"] 146[/TD]
[TD="align: right"]0.3%[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Product features[/TD]
[TD="align: right"] 1,825[/TD]
[TD="align: right"]3.4%[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]Choice of accessories[/TD]
[TD="align: right"] 376[/TD]
[TD="align: right"]0.7%[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]Quality[/TD]
[TD="align: right"] 2,316[/TD]
[TD="align: right"]4.4%[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]Ease of use[/TD]
[TD="align: right"] 2,241[/TD]
[TD="align: right"]4.2%[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Reliability[/TD]
[TD="align: right"] 1,667[/TD]
[TD="align: right"]3.1%[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD]Energy efficient and eco friendly features[/TD]
[TD="align: right"] 1,372[/TD]
[TD="align: right"]2.6%[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD]Russell Hobbs reputation[/TD]
[TD="align: right"] 2,685[/TD]
[TD="align: right"]5.1%[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD]Fast results/time saving[/TD]
[TD="align: right"] 1,512[/TD]
[TD="align: right"]2.8%[/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]Safe[/TD]
[TD="align: right"] 966[/TD]
[TD="align: right"]1.8%[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD]Length of guarantee[/TD]
[TD="align: right"] 1,753[/TD]
[TD="align: right"]3.3%[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD]Size of product/space saving[/TD]
[TD="align: right"] 921[/TD]
[TD="align: right"]1.7%[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD]Lightweight[/TD]
[TD="align: right"] 1,297[/TD]
[TD="align: right"]2.4%[/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD]Stylish[/TD]
[TD="align: right"] 2,070[/TD]
[TD="align: right"]3.9%[/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD]Powerful performance[/TD]
[TD="align: right"] 1,407[/TD]
[TD="align: right"]2.7%[/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD]Value for money/special offer[/TD]
[TD="align: right"] 2,393[/TD]
[TD="align: right"]4.5%[/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD]Previous experience of Russell Hobbs[/TD]
[TD="align: right"] 2,009[/TD]
[TD="align: right"]3.8%[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD]Well designed[/TD]
[TD="align: right"] 2,085[/TD]
[TD="align: right"]3.9%[/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD]Total no. of people who responded[/TD]
[TD="align: right"] 53,093[/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[CENTER][COLOR=#161120][B]Sheet2[/B][/COLOR][/CENTER]
This table uses the below formula which strips out and counts every instance of specific answers in column A of the pivot table (it counts each row the answer appears in a string).
“=SUM(LEN(Sheet4!A:A)-LEN(SUBSTITUTE(Sheet4!A:A,"Not applicable - received as a gift","")))/LEN("Not applicable - received as a gift")”
However, this is only half of what I need. I also need the table to not only strip out every instance of a specific answer, e.g. “Choice of accessories” and count it, I then need it to sum the corresponding number in column B of the pivot table which is the number of instances that particular string appears in the data. Is this possible by adapting the existing formula or would it need an entirely new formula?
Any help any of you could provide would be massively appreciated as I’ve been scratching my head on this for the last two days. You’re my last resort!