I'm trying to use PQ to update a file which has a number of Pivot tables linked to the data. Basically it's the first table here which has a lookup to the second table. When the new data comes in, I then would like to replace the old data with it and have everything update accordingly, in this case the final update will only have Germany records.
Updated data
PQ.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Category | Name | Gender | Age | Dept | ||||||
2 | India | Tom | Male | 36 | Admin | Row Labels | Count of Name | ||||
3 | Australia | Fred | Male | 45 | Sales | Admin | 2 | ||||
4 | Italy | Mary | Female | 55 | HR | Finance | 1 | ||||
5 | India | Sam | Male | 23 | Sales | HR | 3 | ||||
6 | Australia | Jack | Male | 55 | Admin | Sales | 2 | ||||
7 | France | Bert | Male | 61 | HR | Grand Total | 8 | ||||
8 | Australia | Doris | Female | 28 | Finance | ||||||
9 | Italy | Nicola | Female | 34 | HR | ||||||
Data |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2:A9 | A2 | =INDEX(Category!$C$2:$C$9,MATCH(Data!B2,Category!$B$2:$B$9,0)) |
PQ.xlsx | ||||
---|---|---|---|---|
B | C | |||
1 | Name | Country | ||
2 | Tom | India | ||
3 | Fred | Australia | ||
4 | Mary | Italy | ||
5 | Sam | India | ||
6 | Jack | Australia | ||
7 | Bert | France | ||
8 | Doris | Australia | ||
9 | Nicola | Italy | ||
10 | Harry | Germany | ||
11 | Dan | Germany | ||
12 | Fiona | Germany | ||
13 | Noel | Germany | ||
Category |
Updated data
PQ_2.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Name | Gender | Age | Dept | ||
2 | Harry | Male | 36 | Management | ||
3 | Dan | Male | 55 | Management | ||
4 | Fiona | Female | 18 | Executive | ||
5 | Noel | Male | 60 | HR | ||
Sheet1 |