totalchaos
New Member
- Joined
- Jul 6, 2012
- Messages
- 40
I have data tables into two separate worksheets as follows:
Sheet1 table: Unique values in column A
<colgroup><col style="width: 48pt;" span="3" width="64"> <tbody>
</tbody>
Sheet 2 table: data with multiple cost codes
<colgroup><col style="width: 48pt;" span="4" width="64"> <tbody>
</tbody>
The first table has a one-to-many relationship with the second table. That is, one cost code on table1 to multiple cost codes on table2. I want to combine the two tables into one pivot table with the results on a third sheet as such:
<colgroup><col style="width: 48pt;" span="4" width="64"> <tbody>
</tbody>
Can anyone recommend a solution to this?
Sheet1 table: Unique values in column A
Excel 2007 | ||
A | B | |
2 | Cost Code | Budget |
3 | A | 10 |
4 | B | 20 |
5 | C | 30 |
6 | D | 40 |
Sheet1 |
<colgroup><col style="width: 48pt;" span="3" width="64"> <tbody>
</tbody>
Sheet 2 table: data with multiple cost codes
Excel 2007 | |||
A | B | C | |
2 | Employee | Cost Code | Actual |
3 | 1 | A | 3 |
4 | 1 | B | 5 |
5 | 2 | B | 8 |
6 | 2 | D | 10 |
Sheet2 |
<colgroup><col style="width: 48pt;" span="4" width="64"> <tbody>
</tbody>
The first table has a one-to-many relationship with the second table. That is, one cost code on table1 to multiple cost codes on table2. I want to combine the two tables into one pivot table with the results on a third sheet as such:
Excel 2007 | |||
A | B | C | |
1 | Cost Code | Budget | Actual |
2 | A | 10 | 3 |
3 | B | 20 | 13 |
4 | C | 30 | 0 |
5 | D | 40 | 10 |
Sheet3 |
<colgroup><col style="width: 48pt;" span="4" width="64"> <tbody>
</tbody>
Can anyone recommend a solution to this?