Combining data between two sheets

EwatchesUSA

New Member
Joined
Apr 12, 2011
Messages
15
Hello everyone, I have excel wordbook with two sheets in it,Sheet A has all our auto parts, SKU, quantity, purchase date, and Item cost, sheet B contain, SKU, PURCHASE DATE, and Item cost, when we receive new parts we add theme to sheet B and sheet A gets updated automatically, sometimes when we receive new price change we have to look in sheet A one by one for the parts with new price and we change it manually, I'm looking for formula to put in sheet A to pull in the newest price added in sheet B, kEEP IN MIND SHEET B can have the same part number multiple times, I want pull in only the last price update.

Regards Mike
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
A nice challenge, but here is the answer.
Let's assume that on Sheet B you have the following rangenames:
SKU for the column with the SKU (it is best not to have the whole column, as that will slow down the sheet significantly).
PDate for the column with PurchaseDate (as above)
ICost for the column with Item Cost (again)

OK. In sheet A, let's assume that the SKU is in column B, starting from B3, and the ItemCost in column E (from E3).
This last one you want to have the formula to pull the latest price from sheet B.

So the formula in E3 is:
=INDEX(ICost,SUMPRODUCT(MAX((SKU=B3)*ROW(SKU)))-ROW(PDate)+1)

For an explanation how it works: Use SUMPRODUCT to Find The Last Item in an Excel List
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,180
Members
448,871
Latest member
hengshankouniuniu

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