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

I have 2 different pivot tables & want to merge them to get differences in
quantities of identical part numbers. For example :-

Table 1 - In Stock Table 2 - Required

Part Nr Qty Part Nr Qty
12 2 10 2
15 1 12 4
16 3 13 4
20 1 20 1
26 5 23 2
28 4
35 1

I want to get the difference between the two tables as if Table 1 were parts
in stock & Table 2 parts required and for the results only to show for the
parts in table 2

Output as below if possible

Part Nr Deficit
10 -2
12 -2
13 -4
20 0
23 -2

Is this possible?

Kenny
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Merging Pivot Table Data

I assume the two PivotTables come from two different data sources (lists), so
I don't think you can combine them in one PivotTable, but have you looked at
the GETPIVOTDATA worksheet function? You could set up your list of part
numbers in a regular Excel range and use the GETPIVOTDATA function to lookup
the In Stock and Required numbers from the two tables, e.g. (assuming part
number is in A1, and using Cell1 and Cell2 to refer to cells in each of your
2 tables):
=GETPIVOTDATA(Cell1, A1& "Qty") - GETPIVOTDATA(Cell2, A1& "Qty")

" wrote:

I have 2 different pivot tables & want to merge them to get differences in
quantities of identical part numbers. For example :-

Table 1 - In Stock Table 2 - Required

Part Nr Qty Part Nr Qty
12 2 10 2
15 1 12 4
16 3 13 4
20 1 20 1
26 5 23 2
28 4
35 1

I want to get the difference between the two tables as if Table 1 were parts
in stock & Table 2 parts required and for the results only to show for the
parts in table 2

Output as below if possible

Part Nr Deficit
10 -2
12 -2
13 -4
20 0
23 -2

Is this possible?

Kenny

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
Lookup data in a variable table & retrieve data from a pivot table Shawna Excel Worksheet Functions 3 October 10th 08 11:11 PM
Merging data into pivot tables JTERRY Excel Discussion (Misc queries) 0 April 3rd 08 03:56 PM
Filter lines containing pivot table and non pivot table data Grover Excel Worksheet Functions 0 September 24th 07 07:20 PM
Merging Workbook Table data Based upon Value comparisons jayceejay New Users to Excel 5 January 8th 06 11:28 PM
Merging Pivot Table Data [email protected] Excel Discussion (Misc queries) 0 June 21st 05 10:22 AM


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