Need help on multi-level pivot summry

afzanmeo

New Member
Joined
Sep 3, 2015
Messages
2
Hi all,

I need help on a survey table that is of following format. Sr# contains 318 rows and there are 30 columns named 1 through 30. I want to create a summary using 'pivot table' that helps me in identifying how many questions have an answer 'a', 'b', 'c', 'd', and '0'. Would appreciate a quick turnaround as I need to submit the results for my dissertation.
Sr#12
1ab
2cd
30b
4bc
5aa
6bc
7d0
8ac
9bd
10a0

<tbody>
</tbody>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi afzanmeo,

what exactly do you want to summarise?

a) how many a,b,c,d or 0 you have in each of the 30 columns?

or

b) how many a,b,c,d or 0 you have in each of the 318 rows?

or

c) how many a,b,c,d or 0 you have in the whole table?


Cheers,

Nico
 
Upvote 0
Hi Nico,

I need answers to question (a) primarily. Would appreciate an answer to (b) but on second priority.

Thanks,

Hi afzanmeo,

what exactly do you want to summarise?

a) how many a,b,c,d or 0 you have in each of the 30 columns?

or

b) how many a,b,c,d or 0 you have in each of the 318 rows?

or

c) how many a,b,c,d or 0 you have in the whole table?


Cheers,

Nico
 
Upvote 0
Hi afzanmeo,

I wouldn't bother with pivot tables but use countif instead

assuming that your first question data is in row B from B2:B319,

for (a)

just use a countif formula below the data. Put the following four formula into cell B320 to B324

=COUNTIF(B$2:B$319,"a")
=COUNTIF(B$2:B$319,"b")
=COUNTIF(B$2:B$319,"c")
=COUNTIF(B$2:B$319,"d")
=COUNTIF(B$2:B$319,"0")

You can then drag these formulas across all required columns.


for (b)

Use the same formula, but put the following into AF2, AG2, AH2, AI2 and AJ2
=COUNTIF($B2:$AG2,"a")
=COUNTIF($B2:$AG2,"b")
=COUNTIF($B2:$AG2,"c")
=COUNTIF($B2:$AG2,"d")
=COUNTIF($B2:$AG2,"0")

then drag down as far as you need.

Hope this helps,

Nico
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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