Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Massimo
 
Posts: n/a
Default pivot table, functions for subtotals

Hi all,

I need help with a pivot table. This is what I have:
(country and zip code are Column Area, while orders is Data)

COUNTRY ZIP CODE ORDERS
DE 1345 10
DE 1485 5
DE 1887 12
DE total 27
IT 20145 4
IT 20455 9
IT total 13
Grand total 40

And this is what I need:
(below the ZIP CODE column, in the row where there is the subtotal for the
orders, I need the count of how many zip codes are considered per country)

COUNTRY ZIP CODE ORDERS
DE 1345 10
DE 1485 5
DE 1887 12
DE total 3 27
IT 20145 4
IT 20455 9
IT total 2 13
Grand total 40

Does anybody know how to obtain this result? Maybe with a function in a
calculated field?

any help very much appreciated.

Massimo

  #2   Report Post  
Govind
 
Posts: n/a
Default

Hi,

The count of zip codes cant be computed as long as it is put as a
column.Count can be computed only when the zip codes are there in the data
area.

Hence re-arrange the layout of your pivot like this - Country & Zip codes in
column area and choose zip code again in the data area(select 'Count' in the
summarise by Pivot field) and choose orders again in the data area.This way
you will have a table like this:


COUNTRY ZIP CODE COUNT OF ZIP SUM OF ORDERS
DE 1345 1 10
DE 1485 1 5
DE 1887 1 12
DE total 3 27
IT 20145 1 4
IT 20455 1 9
IT total 2 13
Grand total 5 40


Hope this helps.

Govind.




"Massimo" wrote:

Hi all,

I need help with a pivot table. This is what I have:
(country and zip code are Column Area, while orders is Data)

COUNTRY ZIP CODE ORDERS
DE 1345 10
DE 1485 5
DE 1887 12
DE total 27
IT 20145 4
IT 20455 9
IT total 13
Grand total 40

And this is what I need:
(below the ZIP CODE column, in the row where there is the subtotal for the
orders, I need the count of how many zip codes are considered per country)

COUNTRY ZIP CODE ORDERS
DE 1345 10
DE 1485 5
DE 1887 12
DE total 3 27
IT 20145 4
IT 20455 9
IT total 2 13
Grand total 40

Does anybody know how to obtain this result? Maybe with a function in a
calculated field?

any help very much appreciated.

Massimo

  #3   Report Post  
Massimo
 
Posts: n/a
Default

Hi Govind,

Thanks a lot for your help. I've tried to follow your instructions, but the
result is that the count for the zip codes gives the same values as the count
for the orders. Apparently excel does not count the ZIP codes considerg their
uniqueness, it counts them even when the ZIP does not change, so in the end
there are as many ZIP counted as orders...
any idea?

if you want I can send you the file...

thanks a lot.

Massimo

"Govind" wrote:

Hi,

The count of zip codes cant be computed as long as it is put as a
column.Count can be computed only when the zip codes are there in the data
area.

Hence re-arrange the layout of your pivot like this - Country & Zip codes in
column area and choose zip code again in the data area(select 'Count' in the
summarise by Pivot field) and choose orders again in the data area.This way
you will have a table like this:


COUNTRY ZIP CODE COUNT OF ZIP SUM OF ORDERS
DE 1345 1 10
DE 1485 1 5
DE 1887 1 12
DE total 3 27
IT 20145 1 4
IT 20455 1 9
IT total 2 13
Grand total 5 40


Hope this helps.

Govind.




"Massimo" wrote:

Hi all,

I need help with a pivot table. This is what I have:
(country and zip code are Column Area, while orders is Data)

COUNTRY ZIP CODE ORDERS
DE 1345 10
DE 1485 5
DE 1887 12
DE total 27
IT 20145 4
IT 20455 9
IT total 13
Grand total 40

And this is what I need:
(below the ZIP CODE column, in the row where there is the subtotal for the
orders, I need the count of how many zip codes are considered per country)

COUNTRY ZIP CODE ORDERS
DE 1345 10
DE 1485 5
DE 1887 12
DE total 3 27
IT 20145 4
IT 20455 9
IT total 2 13
Grand total 40

Does anybody know how to obtain this result? Maybe with a function in a
calculated field?

any help very much appreciated.

Massimo

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
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
Pivot Table services Craig Excel Discussion (Misc queries) 5 January 19th 05 06:11 PM
Pivot Table Customize functions in the Data Field PSKelligan Excel Discussion (Misc queries) 2 January 4th 05 06:51 PM
Advise on Pivot Table & Functions Janaki Subramanian Excel Discussion (Misc queries) 2 December 29th 04 09:51 AM
Problem with Pivot Table Drop-Down Menus Mac Excel Worksheet Functions 4 November 7th 04 01:18 PM


All times are GMT +1. The time now is 04:47 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"