
Originally Posted by
DonkeyOte
If I've understood...
Sheet1
M2:
=LOOKUP(2,1/((Sheet2!$A$1:$A$100=$A2)*(Sheet2!$B$1:$B$100<=$B2)),Sheet2!$K$1:$K$100)
copied down
NOTES:
1.
Where Date precedes 31/10/2001 you will get an Error value... to rectify (and to avoid need for modification of above) I would advise you add a dummy row to Sheet2 with say date of 1900/01/01 and apply to that the default EPS value you want applied to these early records.
2.
The LOOKUP approach is assuming per your sample that the Dates on Sheet2 are always listed in Ascending order (per Company).
Bookmarks