Pivot Tables - where Cell 'Contains' text...

jayne99

New Member
Joined
Jul 14, 2008
Messages
1
Hello, can anyone please let me know if it is possible to create a pivot table but specifying a count where data within a column contains a specific string (similar to the option available when filtering)?

Sample scenario - a question within a survey allows the user to select their top 3 choices for their answer - the data returned would appear similar to 'answer2; answer5; answer7' in one cell - answers for each complete survey would therefore be random. We need to analyse the responses, and therefore somehow return a count of each individual answer selected (answer1, answer2, answer3, etc.), then by using pivot tables, cross check against a user's Industry, Country, etc.

I have checked Excel version 97, 2003 and 2007 but can't find a way to do this. Can anyone help??

Thanks Jayne
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the Board.

Say you have respondent names in column A and answers in column B. In row 1 starting at column C enter the possible answers, ie answer1, answer2, answer3, etc. In C2 enter:

=ISNUMBER(SEARCH(C$1,$B2))+0

and copy down and across. Now create a pivot table with respondent name as the row field and sum of each of the possible answers in the data field. If you click on the Data field and drag to the right the table will be easier to read.
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,007
Members
449,480
Latest member
yesitisasport

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