I would like the VBA code for multiple lookups, done through a looping macro. I have three columns in a worksheet. The first column contains a list of dates and the second column contains a list of product codes. I am trying to populate the third column with the price of the product.
In a different worksheet I have three columns, which contains the product codes, dates and the prices for each of the products. The issue is the price of the product changes each year for each product, so I need to find the price of each product after the most recent price increase for each product.
I've attached a file for an example, the file contains the two tabs for the macro. I would like the yellow column populated with the result. Can someone please help with the VBA for this example, thanks
Sorry, the example I attached has 3 conditions to match in the first sheet. The VBA code also needs to match the product type in column B, thanks again