Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Table to count values

Hello everybody;

I am having difficulties to set up a pivot table that could help me
analyzing responses received from a questionnaire. I have fields "Districts"
and "Subdistricts" (both coded with numbers) and all the questions code with
"Q1", Q2a", etc... as column headers.
All the responses have been coded with numbers from 1 "very satisfied" to 12.
What I am trying to achieve is to be able to count how many 1, 2, 3, ... for
each question. Once I have this, I would aslo like to have an idea of the
values in percentage (% compared to the total amount of questionnaires).

Could somebody give me a hand. I hope the question is clear enough.

Many thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Pivot Table to count values

Your source data is in the wrong format for what you want to do. You are set
up like this...

District SubDistrict Q1 Q2 Q3
abc def 4 7 9

You want it to look like this...
District SubDistrict Question Answer
abc def Q1 4
abc def Q2 7
abc def Q3 9

If you can change the source file then everything you have asked for becomes
quite easy.
--
HTH...

Jim Thomlinson


"Piloulondon" wrote:

Hello everybody;

I am having difficulties to set up a pivot table that could help me
analyzing responses received from a questionnaire. I have fields "Districts"
and "Subdistricts" (both coded with numbers) and all the questions code with
"Q1", Q2a", etc... as column headers.
All the responses have been coded with numbers from 1 "very satisfied" to 12.
What I am trying to achieve is to be able to count how many 1, 2, 3, ... for
each question. Once I have this, I would aslo like to have an idea of the
values in percentage (% compared to the total amount of questionnaires).

Could somebody give me a hand. I hope the question is clear enough.

Many thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Table to count values

Thanks Jim;

I will try to change the format of the data and will let you know. Thanks
again.

"Jim Thomlinson" wrote:

Your source data is in the wrong format for what you want to do. You are set
up like this...

District SubDistrict Q1 Q2 Q3
abc def 4 7 9

You want it to look like this...
District SubDistrict Question Answer
abc def Q1 4
abc def Q2 7
abc def Q3 9

If you can change the source file then everything you have asked for becomes
quite easy.
--
HTH...

Jim Thomlinson


"Piloulondon" wrote:

Hello everybody;

I am having difficulties to set up a pivot table that could help me
analyzing responses received from a questionnaire. I have fields "Districts"
and "Subdistricts" (both coded with numbers) and all the questions code with
"Q1", Q2a", etc... as column headers.
All the responses have been coded with numbers from 1 "very satisfied" to 12.
What I am trying to achieve is to be able to count how many 1, 2, 3, ... for
each question. Once I have this, I would aslo like to have an idea of the
values in percentage (% compared to the total amount of questionnaires).

Could somebody give me a hand. I hope the question is clear enough.

Many thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Table to count values

Hi Jim;
I cannot use what you suggest because each line represent a questionnaire
and the fields "District" and "Subdistrict" are the 1st 2 fields of the row.
Any other idea that could help me?
Thanks again!

"Jim Thomlinson" wrote:

Your source data is in the wrong format for what you want to do. You are set
up like this...

District SubDistrict Q1 Q2 Q3
abc def 4 7 9

You want it to look like this...
District SubDistrict Question Answer
abc def Q1 4
abc def Q2 7
abc def Q3 9

If you can change the source file then everything you have asked for becomes
quite easy.
--
HTH...

Jim Thomlinson


"Piloulondon" wrote:

Hello everybody;

I am having difficulties to set up a pivot table that could help me
analyzing responses received from a questionnaire. I have fields "Districts"
and "Subdistricts" (both coded with numbers) and all the questions code with
"Q1", Q2a", etc... as column headers.
All the responses have been coded with numbers from 1 "very satisfied" to 12.
What I am trying to achieve is to be able to count how many 1, 2, 3, ... for
each question. Once I have this, I would aslo like to have an idea of the
values in percentage (% compared to the total amount of questionnaires).

Could somebody give me a hand. I hope the question is clear enough.

Many thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Pivot Table to count values

If it is a matter of too much work to coerce your source data into the proper
format that can be done via code. If you do not coerce your source data then
a pivot table will be an up hill battle. Ideally pivot table data has as few
columns as possible.
--
HTH...

Jim Thomlinson


"Piloulondon" wrote:

Hi Jim;
I cannot use what you suggest because each line represent a questionnaire
and the fields "District" and "Subdistrict" are the 1st 2 fields of the row.
Any other idea that could help me?
Thanks again!

"Jim Thomlinson" wrote:

Your source data is in the wrong format for what you want to do. You are set
up like this...

District SubDistrict Q1 Q2 Q3
abc def 4 7 9

You want it to look like this...
District SubDistrict Question Answer
abc def Q1 4
abc def Q2 7
abc def Q3 9

If you can change the source file then everything you have asked for becomes
quite easy.
--
HTH...

Jim Thomlinson


"Piloulondon" wrote:

Hello everybody;

I am having difficulties to set up a pivot table that could help me
analyzing responses received from a questionnaire. I have fields "Districts"
and "Subdistricts" (both coded with numbers) and all the questions code with
"Q1", Q2a", etc... as column headers.
All the responses have been coded with numbers from 1 "very satisfied" to 12.
What I am trying to achieve is to be able to count how many 1, 2, 3, ... for
each question. Once I have this, I would aslo like to have an idea of the
values in percentage (% compared to the total amount of questionnaires).

Could somebody give me a hand. I hope the question is clear enough.

Many thanks



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pivot Table to count values

Instead of a pivot table, how about =COUNTIF?
E.g. A1:E11 =
Dist Sub Q1 Q2 Q3
a e 2 3 4
b f 3 4 5
c g 1 2 3
d h 2 3 4

1 1 0 0
2 2 1 0
3 1 2 1
4 0 1 2
5 0 0 1

The formula in C7: =COUNTIF(C$2:C$5,$A7)
Copy to C7:E11.

D-C Dave

"Piloulondon" wrote:
Hello everybody;

I am having difficulties to set up a pivot table that could help me
analyzing responses received from a questionnaire. I have fields "Districts"
and "Subdistricts" (both coded with numbers) and all the questions code with
"Q1", Q2a", etc... as column headers.
All the responses have been coded with numbers from 1 "very satisfied" to 12.
What I am trying to achieve is to be able to count how many 1, 2, 3, ... for
each question. Once I have this, I would aslo like to have an idea of the
values in percentage (% compared to the total amount of questionnaires).

Could somebody give me a hand. I hope the question is clear enough.

Many thanks

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Table to count values

Hi Dave;
This is what I have at the moment and it works fine. However, I will have to
filter the data in different ways to see what the trends are (ie. % of people
who answered for all districts, per district, per district and subdistricts,
etc...) and I thought that the pivot table was the solution.
Each line of the table correspond to a questionnaire. Therefore, I cannot
use the solution that Jim suggested.
Thanks for you answer.
Philippe

"D-C Dave" wrote:

Instead of a pivot table, how about =COUNTIF?
E.g. A1:E11 =
Dist Sub Q1 Q2 Q3
a e 2 3 4
b f 3 4 5
c g 1 2 3
d h 2 3 4

1 1 0 0
2 2 1 0
3 1 2 1
4 0 1 2
5 0 0 1

The formula in C7: =COUNTIF(C$2:C$5,$A7)
Copy to C7:E11.

D-C Dave

"Piloulondon" wrote:
Hello everybody;

I am having difficulties to set up a pivot table that could help me
analyzing responses received from a questionnaire. I have fields "Districts"
and "Subdistricts" (both coded with numbers) and all the questions code with
"Q1", Q2a", etc... as column headers.
All the responses have been coded with numbers from 1 "very satisfied" to 12.
What I am trying to achieve is to be able to count how many 1, 2, 3, ... for
each question. Once I have this, I would aslo like to have an idea of the
values in percentage (% compared to the total amount of questionnaires).

Could somebody give me a hand. I hope the question is clear enough.

Many thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Unique Values in Pivot table Craig860 Excel Discussion (Misc queries) 5 January 31st 09 01:46 PM
Count values from Pivot Table lesg46 Excel Worksheet Functions 11 September 17th 08 01:13 PM
How to DISPLAY all data values in Pivot Table...not count, sum, etc spot1234 Excel Discussion (Misc queries) 3 July 21st 06 09:29 PM
Count unique values - Pivot Table Thomas Mueller Excel Discussion (Misc queries) 3 November 3rd 05 11:55 PM
Count unique values - Pivot Table Thomas Mueller Charts and Charting in Excel 0 November 2nd 05 01:05 PM


All times are GMT +1. The time now is 12:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"