saltyorange
New Member
- Joined
- Jul 23, 2012
- Messages
- 1
I have data with 2 key fields, an origin location and destination location and then a cost. I have one pivot table that has the sum of the cost by origin. I have another one that has a sum by destination. I want to get a table that has the location and then the Cost associated with when the location is an origin and then the cost associated with the location as a destination.
A simplified example is below. I have more fields than just cost, but wanted to keep it simple. Any thoughts on how to do this? (aside from just doing it in Access where it would be very easy).
Data
A B 500
A C 400
A D 300
B A 550
B C 700
etc
Pivot Table 1
A 800
B 1250
Pivot Table 2
A 550
B 500
C 1100
D 300
Final Result desired
Location Cost from Origin Cost from Destination
A 800 550
B 1250 500
C 1100
D 300
A simplified example is below. I have more fields than just cost, but wanted to keep it simple. Any thoughts on how to do this? (aside from just doing it in Access where it would be very easy).
Data
A B 500
A C 400
A D 300
B A 550
B C 700
etc
Pivot Table 1
A 800
B 1250
Pivot Table 2
A 550
B 500
C 1100
D 300
Final Result desired
Location Cost from Origin Cost from Destination
A 800 550
B 1250 500
C 1100
D 300