Vlookup - Return value finding the value between the dates

lionsclaw

New Member
Joined
Aug 25, 2015
Messages
2
Hi,

There are 2 excel data.
The Data 1 excel has SKU code and has the sold amount.
Data 2 excel has sku code and discount to be given during that period.
So I want to search SKU and return the sku discount to be given from "Data 2" by looking the date of the data 1 between the discount period of start date and end date mentioned in "Data 2".


Data 1
Sale DateSKUAmount
13-Aug-15A600.00
15-Aug-15A625.00
19-Aug-15A645.00

<tbody>
</tbody>











Data 2
SKUDiscount To be GivenStart DateEnd Date
A2508/08/201509/08/2015
A9510/08/201510/08/2015
A9511/08/201511/08/2015
A7512/08/201514/08/2015

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the forum.

Try this entered as an array with ctrl, shift & enter

=INDEX($B$11:$B$14,MATCH(1,IF($A$11:$A$14=B4,IF($C$11:$C$14<=A4,IF($D$11:$D$14>=A4,1)))))
 
Upvote 0
Welcome to the forum.

Try this entered as an array with ctrl, shift & enter

=INDEX($B$11:$B$14,MATCH(1,IF($A$11:$A$14=B4,IF($C$11:$C$14<=A4,IF($D$11:$D$14>=A4,1)))))



Thank you so much for your help.
It was of great help.
Really appreciate it.
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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