Given the set below:
A2
is=today()
, resolving to the date value ofApr-19
- range
D2:2
(D2 and onwards to the right) are a list of dates A4
is a product that im expecting to be shipped- range
D4:4
(D4 and onwards to the right) are the number of units ofA4
im expecting to arrive by their corresponding date on rowD2:AH
- The sample is simplified but row 4 downwards is dynamic and I can have more items on that table
I need:
- Cell
B4
to return the value from rangeD4:4
of the latest date that s more thanA2
(today)
Samples:
A2
= Apr 19, thenB4
=130
(from Apr 23)A2
= Apr 22, thenB4
=130
(from Apr 23)A2
= Apr 23, thenB4
=0
(from Apr 24)
我利用INDEX和MATCH进行了尝试,但我可以拿到“比今天大的”部分。
提前感谢。