I am creating an excel inventory and am running into a challenge that has stumped the Excel "masters" I know
.
I have one worksheet that has the following column structure. Practically this list represents every single physical inventory item in a store, it's wholesale cost, and the date the item was received. Duplicates are allowed:
SKU COST DATE_RECEIVED
And then, I have a second worksheet that has the following column structure. Practically, this list represents all individual items that were sold at the store. Duplicates are allowed:
SKU SOLD_PRICE DATE_SOLD
The problem is I'm trying to introduce the DATE_SOLD and the SOLD_PRICE columns into the first worksheet. With no dupes, this is easy. But when we have dupes in each table, it has stumped us.
I ultimately want a FIFO method where when an item sells and thus shows up in the second table, it finds the first (by DATE_RECEIVED), "unsold" item in the first table with a matching SKU, and insert the DATE_SOLD and SOLD_PRICE columns of data into that item in table one.
Any ideas???

I have one worksheet that has the following column structure. Practically this list represents every single physical inventory item in a store, it's wholesale cost, and the date the item was received. Duplicates are allowed:
SKU COST DATE_RECEIVED
And then, I have a second worksheet that has the following column structure. Practically, this list represents all individual items that were sold at the store. Duplicates are allowed:
SKU SOLD_PRICE DATE_SOLD
The problem is I'm trying to introduce the DATE_SOLD and the SOLD_PRICE columns into the first worksheet. With no dupes, this is easy. But when we have dupes in each table, it has stumped us.
I ultimately want a FIFO method where when an item sells and thus shows up in the second table, it finds the first (by DATE_RECEIVED), "unsold" item in the first table with a matching SKU, and insert the DATE_SOLD and SOLD_PRICE columns of data into that item in table one.
Any ideas???