Help Merging Metrics from 2 different tables

treym

Board Regular
Joined
Feb 20, 2004
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Let's see if I can explain this correctly. I have one table that is broken out by "Account" (ie, Retailer A), by month, by product UPC and includes Dollar Sales and Credits. I have another table (with data that comes from another source) that has additional metrics I'd like to merge into the first table: Unit Returns, Case Returns matched to those same retailers, months and products. I've made sure the Account "#" and UPC matches in both sheets. I'd like to be able to pull these into a single pivot table as opposed to two. There are some more complicated additions, but thats after I figure this out. I've included a simple mockup for reference.


Excel 2010
CDEFGHIJKLM
3Table OneTable Two
4DateAccountAccount #SalesCreditsDateAccountAccount #Unit ReturnsCase Returns
51/1/2016A1234100251/1/2016A1234525
62/1/2016A1234200502/1/2016A1234832
73/1/2016A1234300253/1/2016A12341056
8
9NEW Merged Table
10DateAccountAccount #SalesCreditsUnit ReturnsCase Returns
111/1/2016A123410025525
122/1/2016A123420050832
133/1/2016A1234300251056
Table Merge
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
So could you start with Table One Data and use the account number or account as a reference for a VLOOKUP? Then just VLOOKUP the Unit Returns and Case Returns thereby creating a third data set that resembles your NEW Merged Table. Then create your pivot table from that set of data?
 
Upvote 0
I thought of that but I have a few caveats (or I'm overthinking it). I literally have hundreds of products and thousands of rows of dates (years) and a hundred accounts. I wasn't sure if that complicated it or not. I guess I was thinking tings don't match 1:1. I may have more "dates" in the one column opposed to the other, so they wouldn't match row to row. I tend to think much more concretely, which I think limits my ability to figure it out. But essentially, yet, I want to run one pivot table report together to show the relationship.
 
Upvote 0
I see; this can get very complicated. I'd need a larger sample the data in order to give you a solid answer. I just can't tell you off hand exactly how without a little trial and error. I'd recommend looking at INDEX and MATCH as an option to see if this can provide you with a solution.
 
Last edited:
Upvote 0
I could get a "masked" example to you and you could see what I mean. Let me know if you're interested and how to get it to you.
 
Upvote 0

Forum statistics

Threads
1,223,980
Messages
6,175,763
Members
452,668
Latest member
mrider123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top