Hello
I am looking for a formula that contains both an exact match criteria to locate a product ID number, and then a "<=" match to find the last date the product's price was updated. The formula would allow me to link pricing information from one table to another on separate worksheets.
Table 1: "Price Tracker" where I enter a date, product ID and price. Every time there is a new price for the same product, I start a new row with a new date, the same product ID and an updated price.
Table 2: "Stock Tracker" where I enter a date, product ID and quantity. I would like to use a formula that will search Table 1 to match the product ID and then return the price that is/was in effect based on the date when the stock entry was made.
=INDEX($D$2:$D$17,MATCH(MIN(ABS(IF($A$2:$A$17=G2,$C$2:$C$17,999999)-I2)),ABS(IF($A$2:$A$17=G2,$C$2:$C$17,999999)-I2),0))
This array formula above that I found in this thread partially works, but it does not match the right price if I have more than 1 price update in Table 1.
I can supply a sample excel file to help illustrate what I'd like to accomplish.
Thanks in advance!
Bookmarks