I need to create a formula in a single cell without further cells being
used for calculations.
I'm trying to return the date when my Available stock will run out based on a fortnightly forecast.
A B C D E F G
1 CODE Cover Avail 1-Sep 15-Sep 29-Sep 13-Oct
2 NET001 1/09/2008 64000 36000 0 0 48000
I put the formula in B2. Which attempts to return the date from the 1st row.
Using =INDEX(D1:G1,MATCH(C2,D2:G2,1)) gets me the result 13-Oct.
Problem then is that once I start included the rest of the forecast numbers
the MATCH only looks for the closing matching number.
Eg:
H1 = 27-Oct
H2 = 144,000
I1 = 10-Nov
I2 = 96,000
Change the Avail Number (C2) to 150,000
Using =INDEX(D1:I1,MATCH(C2,D2:I2,1)) gets me the result 10-Nov.
which is wrong - It should return 27-Oct because it is within that period
that my stock will run out.
Any suggestions?
Thanks.