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

If I have a datalist like the following, is it possible to produce a
pivot table with a single row for each unique combination of values in
column A and B? Basically, I want to see the BALANCE once for each
unique combination of CODE! and CODE2. In the datalist, VAL1 is
adding to the total; VAL2 is removing from the total, and BALANCE (for
the first data row) is calculated with the formula:

=SUMIFS(E:E,A:A,A4,B:B,B4)-SUMIFS(G:G,A:A,A4,B:B,B4)

A B C D E F G H
----------------------------------------------------------------------------------------------------------------------------------------------------------------
CODE1 CODE2 CODE3 DATE1 VAL1 DATE2 VAL2 BALANCE
----------------------------------------------------------------------------------------------------------------------------------------------------------------
55478 34001 21987 14-Aug-2009 8 2
55478 34001 23-Sep-2009 4 2
55478 34001 31-Dec-2009 2 2
62323 34001 22387 9-Oct-2009 7 7
62323 20002 21748 9-Oct-2009 14 14
59400 43001 19878 14-Oct-2009 9 0
59400 43001 18-Nov-2009 9 0
....

Any assistance would be greatly appreciated.

Thanks,

Terry

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Pivot Table categories

On Aug 17, 11:41*am, Alder wrote:
If I have a datalist like the following, is it possible to produce a
pivot table with a single row for each unique combination of values in
column A and B? *Basically, I want to see the BALANCE once for each
unique combination of CODE! and CODE2. *In the datalist, VAL1 is
adding to the total; VAL2 is removing from the total, and BALANCE (for
the first data row) is calculated with the formula:

=SUMIFS(E:E,A:A,A4,B:B,B4)-SUMIFS(G:G,A:A,A4,B:B,B4)

A * * * B * * * C * * * D * * * * * * * E * * * F * * * * * * * G * * * H
---------------------------------------------------------------------------*---------------------------------------------------------------------------*----------
CODE1 * CODE2 * CODE3 * DATE1 * * * * * VAL1 * *DATE2 * * * * * VAL2 * *BALANCE
---------------------------------------------------------------------------*---------------------------------------------------------------------------*----------
55478 * 34001 * 21987 * 14-Aug-2009 * * 8 * * * * * * * * * * * * * * * 2
55478 * 34001 * * * * * * * * * * * * * * * * * 23-Sep-2009 * * 4 * * * 2
55478 * 34001 * * * * * * * * * * * * * * * * * 31-Dec-2009 * * 2 * * * 2
62323 * 34001 * 22387 * 9-Oct-2009 * * *7 * * * * * * * * * * * * * * * 7
62323 * 20002 * 21748 * 9-Oct-2009 * * *14 * * * * * * * * * * * * * * *14
59400 * 43001 * 19878 * 14-Oct-2009 * * 9 * * * * * * * * * * * * * * * 0
59400 * 43001 * * * * * * * * * * * * * * * * * 18-Nov-2009 * * 9 * * * 0
...

Any assistance would be greatly appreciated.

Thanks,

Terry


Sorry, the tabs I inserted to space the data were removed when I
posted. Here it is with spaces instead:

A B C D E F
G H
---------------------------------------------------------------------------*---------------------------------------------------------------------------*----------
CODE1 CODE2 CODE3 DATE1 VAL1 DATE2
VAL2 BALANCE
---------------------------------------------------------------------------*---------------------------------------------------------------------------*----------
55478 34001 21987 14-Aug-2009
8 2
55478 34001 23-
Sep-2009 4 2
55478 34001 31-
Dec-2009 2 2
62323 34001 22387 9-Oct-2009
7 7
62323 20002 21748 9-Oct-2009
14 14
59400 43001 19878 14-Oct-2009
9 0
59400 43001 18-
Nov-2009 9 0

Terry
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Pivot Table categories

On Aug 17, 11:46*am, Alder wrote:
On Aug 17, 11:41*am, Alder wrote:





If I have a datalist like the following, is it possible to produce a
pivot table with a single row for each unique combination of values in
column A and B? *Basically, I want to see the BALANCE once for each
unique combination of CODE! and CODE2. *In the datalist, VAL1 is
adding to the total; VAL2 is removing from the total, and BALANCE (for
the first data row) is calculated with the formula:


=SUMIFS(E:E,A:A,A4,B:B,B4)-SUMIFS(G:G,A:A,A4,B:B,B4)


A * * * B * * * C * * * D * * * * * * * E * * * F * * * * * * * G * * * H
---------------------------------------------------------------------------**--------------------------------------------------------------------------*-*----------
CODE1 * CODE2 * CODE3 * DATE1 * * * * * VAL1 * *DATE2 * * * * * VAL2 * *BALANCE
---------------------------------------------------------------------------**--------------------------------------------------------------------------*-*----------
55478 * 34001 * 21987 * 14-Aug-2009 * * 8 * * * * * * * * * * * * * * * 2
55478 * 34001 * * * * * * * * * * * * * * * * * 23-Sep-2009 * * 4 * * * 2
55478 * 34001 * * * * * * * * * * * * * * * * * 31-Dec-2009 * * 2 * * * 2
62323 * 34001 * 22387 * 9-Oct-2009 * * *7 * * * * * * * * * * * * * * * 7
62323 * 20002 * 21748 * 9-Oct-2009 * * *14 * * * * * * * * * * * * * * *14
59400 * 43001 * 19878 * 14-Oct-2009 * * 9 * * * * * * * * * * * * * * * 0
59400 * 43001 * * * * * * * * * * * * * * * * * 18-Nov-2009 * * 9 * * * 0
...


Any assistance would be greatly appreciated.


Thanks,


Terry


Sorry, the tabs I inserted to space the data were removed when I
posted. *Here it is with spaces instead:

A * * * B * * * C * * * D * * * * * * * E * * * F
G * * * H
---------------------------------------------------------------------------**--------------------------------------------------------------------------*-*----------
CODE1 * CODE2 * CODE3 * DATE1 * * * * * VAL1 * *DATE2
VAL2 * *BALANCE
---------------------------------------------------------------------------**--------------------------------------------------------------------------*-*----------
55478 * * 34001 * * 21987 * * 14-Aug-2009
8 * * * * * * * * * * * * * * * * * * * * *2
55478 * * 34001 * * * * * * * * * * * * * * * * * * * * * * * * * *23-
Sep-2009 * * 4 * * * * 2
55478 * * 34001 * * * * * * * * * * * * * * * * * * * * * * * * * *31-
Dec-2009 * * 2 * * * * 2
62323 * * 34001 * * 22387 * * * 9-Oct-2009
7 * * * * * * * * * * * * * * * * * * * * 7
62323 * * 20002 * * 21748 * * * 9-Oct-2009
14 * * * * * * * * * * * * * * * * * * * 14
59400 * * 43001 * * 19878 * * 14-Oct-2009
9 * * * * * * * * * * * * * * * * * * * * 0
59400 * * 43001 * * * * * * * * * * * * * * * * * * * * * * * * * *18-
Nov-2009 * * 9 * * * * 0

Terry- Hide quoted text -

- Show quoted text -


Hmm. I'll have to find the HOWTO for posting fixed-width data. Sorry
about this mess.
Thanks,

Terry
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Pivot Table categories

Alder wrote:
If I have a datalist like the following, is it possible to produce a
pivot table with a single row for each unique combination of values in
column A and B? Basically, I want to see the BALANCE once for each
unique combination of CODE! and CODE2. In the datalist, VAL1 is
adding to the total; VAL2 is removing from the total, and BALANCE (for
the first data row) is calculated with the formula:

=SUMIFS(E:E,A:A,A4,B:B,B4)-SUMIFS(G:G,A:A,A4,B:B,B4)

A B C D E F G H
----------------------------------------------------------------------------------------------------------------------------------------------------------------
CODE1 CODE2 CODE3 DATE1 VAL1 DATE2 VAL2 BALANCE
----------------------------------------------------------------------------------------------------------------------------------------------------------------
55478 34001 21987 14-Aug-2009 8 2
55478 34001 23-Sep-2009 4 2
55478 34001 31-Dec-2009 2 2
62323 34001 22387 9-Oct-2009 7 7
62323 20002 21748 9-Oct-2009 14 14
59400 43001 19878 14-Oct-2009 9 0
59400 43001 18-Nov-2009 9 0
...

Any assistance would be greatly appreciated.

Thanks,

Terry



Add a column in your data that combines CODE1 and CODE2. Something like this:

=A2&" "&B2

Put that field in the ROW FIELDS of the PivotTable.

In the PivotTable, add a calculated field that is =VAL1-VAL2 and put that in
your DATA ITEMS.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Pivot Table categories

On Aug 17, 12:18*pm, Glenn wrote:
Alder wrote:
If I have a datalist like the following, is it possible to produce a
pivot table with a single row for each unique combination of values in
column A and B? *Basically, I want to see the BALANCE once for each
unique combination of CODE! and CODE2. *In the datalist, VAL1 is
adding to the total; VAL2 is removing from the total, and BALANCE (for
the first data row) is calculated with the formula:


=SUMIFS(E:E,A:A,A4,B:B,B4)-SUMIFS(G:G,A:A,A4,B:B,B4)


A *B * * * C * * * D * * * * * * * E * * * F * * * * * * * G * * * H
---------------------------------------------------------------------------*---------------------------------------------------------------------------*----------
CODE1 * * *CODE2 * CODE3 * DATE1 * * * * * VAL1 * *DATE2 * * * * * VAL2 * *BALANCE
---------------------------------------------------------------------------*---------------------------------------------------------------------------*----------
55478 * * *34001 * 21987 * 14-Aug-2009 * * 8 * * * * * * * * * * * * * * * 2
55478 * * *34001 * * * * * * * * * * * * * * * * * 23-Sep-2009 * * 4 * * * 2
55478 * * *34001 * * * * * * * * * * * * * * * * * 31-Dec-2009 * * 2 * * * 2
62323 * * *34001 * 22387 * 9-Oct-2009 * * *7 * * * * * * * * * * * * * * * 7
62323 * * *20002 * 21748 * 9-Oct-2009 * * *14 * * * * * * * * * * * * * * *14
59400 * * *43001 * 19878 * 14-Oct-2009 * * 9 * * * * * * * * * * * * * * * 0
59400 * * *43001 * * * * * * * * * * * * * * * * * 18-Nov-2009 * * 9 * * * 0
...


Any assistance would be greatly appreciated.


Thanks,


Terry


Add a column in your data that combines CODE1 and CODE2. *Something like this:

=A2&" "&B2

Put that field in the ROW FIELDS of the PivotTable.

In the PivotTable, add a calculated field that is =VAL1-VAL2 and put that in
your DATA ITEMS.- Hide quoted text -

- Show quoted text -


Exactly what I needed. Thanks, Glenn.
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
All categories to show in pivot tables for use as dataframe? smaw Excel Worksheet Functions 1 December 13th 07 03:15 AM
How to print different charts from multiple categories of pivot ch Perkgolf Excel Discussion (Misc queries) 0 April 14th 07 05:38 PM
How do i sort and count data into categories using a pivot table? munchkin Excel Discussion (Misc queries) 5 December 29th 06 06:36 PM
Are Pivot Charts only useful with limited number of categories(x-axis)? Mike Charts and Charting in Excel 0 June 15th 06 02:54 AM
How I can add categories in a pivot table? Todd L. Excel Worksheet Functions 0 December 1st 04 05:19 AM


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

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

About Us

"It's about Microsoft Excel"