Looking Up Data Based on a Future Date and Another Criteria

KellyBailey

New Member
Joined
Jul 17, 2018
Messages
5
Hello,

Hope someone can help with this. I have a worksheet with a list of products, dates, delivery locations and amount being delivered (units). The products can be duplicated, as can the dates, but the delivery locations will be different if this is the case.

ProductDateDelivery LocationUnits
Cup30/10/18UK100
Cup30/10/18US50
Plate13/05/18UK25
Plate19/12/18UK1000
Plate20/12/18US5
Plate25/12/18UK35
Plate25/12/18US10

<tbody>
</tbody>

I would like a formula that tell me when my next plate is coming in to the UK after a selected date and then in another cell how many units are being delivered.

So for example, if today is 10/5/18 the plates delivered into the UK would be 25.
But if today is 14/5/18 the plates delivered into the UK would be 1000.

I will also have a formula to tell me when the next plate is coming into the US etc.

I have had a really long look at this. Tried a variety of IF AND and IF OR with VLOOKUPs and INDEX MATCH functions. Nothing seemed to work.

Many thanks in advance

Kelly
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Book1
ABCDEFG
1ProductDateDelivery LocationUnitsProductPlate
2Cup30/10/2018UK100LocationUK
3Cup30/10/2018US50After Date17/07/2018
4Plate13/05/2018UK25Next Date19/12/2018
5Plate19/12/2018UK1000Units1000
6Plate20/12/2018US5
7Plate25/12/2018UK35
8Plate25/12/2018US10
Sheet1
Cell Formulas
RangeFormula
G4{=INDEX($B:$B,SMALL(IF($A:$A=$G$1,IF($B:$B>=$G$3,IF($C:$C=$G$2,ROW($B:$B)))),1))}
G5{=INDEX($D:$D,SMALL(IF($A:$A=$G$1,IF($B:$B>=$G$3,IF($C:$C=$G$2,ROW($D:$D)))),1))}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,340
Messages
6,124,386
Members
449,155
Latest member
ravioli44

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