I have a table with specific products and dates and I want to get the cost values that correspond to that date . The source table has a range of dates and not an actual match (that is my problem). Here is the task: we are trying to fill column "Cost" based on Sheet 2
SHEET 1:
Product | Date | Cost | price |
---|---|---|---|
First | 29/12/2021 | result 1 (formula type X) | 100 |
Second | 05/01/2021 | result 2 (formula type X) | 200 |
The other Sheet has the date ranges with the desired results (selling prices), like this:
SHEET 2:
Product | Start Date | End Date | Cost |
---|---|---|---|
First | 28/12/2020 | 03/01/2021 | result 1 |
Second | 04/01/2021 | 11/01/2021 | result 2 |
PS. I have different costs for different products in the same date. So, we needed to also add a parameter that will match the Product from one sheet with the product of the other.