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.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Product[/TD]
[TD]Date[/TD]
[TD]Delivery Location[/TD]
[TD]Units[/TD]
[/TR]
[TR]
[TD]Cup[/TD]
[TD]30/10/18[/TD]
[TD]UK[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]Cup[/TD]
[TD]30/10/18[/TD]
[TD]US[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Plate[/TD]
[TD]13/05/18[/TD]
[TD]UK[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]Plate[/TD]
[TD]19/12/18[/TD]
[TD]UK[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Plate[/TD]
[TD]20/12/18[/TD]
[TD]US[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Plate[/TD]
[TD]25/12/18[/TD]
[TD]UK[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]Plate[/TD]
[TD]25/12/18[/TD]
[TD]US[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]

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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

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,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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