Hi:
I need some help with a Vlookup I am trying to create. I have 2 Sheets.
Sheet 1 have the following columns:
- SKU
- Starting Date
- Quarter
- Price
The Price column is the one I need to fill in with a formula.
Sheet 2 have the following columns:
- SKU
- Price
- Effective Date
The SKU is repeated in this list of Sheet 2 because the prices may change with a new Effective Date. The value of the price I need to have in Sheet 1 should be the last price change that is closest to the Starting Date of that Quarter but not greater than the Start Date. For example, if there are 4 prices for a single SKU and the Effective dates are 12/30/2011, 12/31/2011, 1/2/2012 and 2/2/2012 it should use the price of the 12/31/2011 for Quarter 1 2012 since that is the closest to the Starting Date which is 1/1/2012.
Do you have any idea how can this be created using VLookup, Index, or any other function?
I need some help with a Vlookup I am trying to create. I have 2 Sheets.
Sheet 1 have the following columns:
- SKU
- Starting Date
- Quarter
- Price
The Price column is the one I need to fill in with a formula.
Sheet 2 have the following columns:
- SKU
- Price
- Effective Date
The SKU is repeated in this list of Sheet 2 because the prices may change with a new Effective Date. The value of the price I need to have in Sheet 1 should be the last price change that is closest to the Starting Date of that Quarter but not greater than the Start Date. For example, if there are 4 prices for a single SKU and the Effective dates are 12/30/2011, 12/31/2011, 1/2/2012 and 2/2/2012 it should use the price of the 12/31/2011 for Quarter 1 2012 since that is the closest to the Starting Date which is 1/1/2012.
Do you have any idea how can this be created using VLookup, Index, or any other function?