Find SKU price from a history of prices if i know the sales date

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
i have a list of SKU's on Sheet 1.
I have historical pricing on sheet 2 by SKU and price date.
I am trying to "vlookup or Index/Match, etc to bring in the historical price into sheet 1 that is immediately prior to sales date on Sheet 1

I can NEVER get this right . . .

thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If you want to bring back the SKU price based on the SKU date,you wont be able to use vlookup - the search criteria needs to be in the very 1st column of the range.
Because you need to test for 2 things - SKU and Date, try this
[Table="width:, class:grid"][tr][td] [/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][td]
E​
[/td][td]
F​
[/td][td]
G​
[/td][/tr]
[tr][td]
1​
[/td][td]Sheet1[/td][td][/td][td][/td][td][/td][td]Sheet2[/td][td][/td][td][/td][/tr]

[tr][td]
2​
[/td][td]SKU[/td][td]Date[/td][td]Price[/td][td][/td][td]SKU[/td][td]PRICE[/td][td]DATE[/td][/tr]

[tr][td]
3​
[/td][td]
123​
[/td][td]
6/21/2018​
[/td][td]
50​
[/td][td][/td][td]
123​
[/td][td]
10​
[/td][td]
6/1/2018​
[/td][/tr]

[tr][td]
4​
[/td][td][/td][td][/td][td][/td][td][/td][td]
234​
[/td][td]
20​
[/td][td]
6/6/2018​
[/td][/tr]

[tr][td]
5​
[/td][td][/td][td][/td][td][/td][td][/td][td]
345​
[/td][td]
30​
[/td][td]
6/11/2018​
[/td][/tr]

[tr][td]
6​
[/td][td][/td][td][/td][td][/td][td][/td][td]
456​
[/td][td]
40​
[/td][td]
6/16/2018​
[/td][/tr]

[tr][td]
7​
[/td][td][/td][td][/td][td][/td][td][/td][td]
123​
[/td][td]
50​
[/td][td]
6/21/2018​
[/td][/tr]

[tr][td]
8​
[/td][td][/td][td][/td][td][/td][td][/td][td]
234​
[/td][td]
60​
[/td][td]
6/26/2018​
[/td][/tr]

[tr][td]
9​
[/td][td][/td][td][/td][td][/td][td][/td][td]
345​
[/td][td]
70​
[/td][td]
7/1/2018​
[/td][/tr]

[tr][td]
10​
[/td][td][/td][td][/td][td][/td][td][/td][td]
456​
[/td][td]
80​
[/td][td]
7/6/2018​
[/td][/tr]
[/table]

B3 would contain your selected date
C3=INDEX($F$3:$F$10,MATCH(A3&" "&B3,INDEX($E$3:$E$10&" "&$G$3:$G$10,0),0))
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top