You're welcome. Basically, the LOOKUP function [ LOOKUP(2,1/... ] returns the last value in column I that meets a certain criteria.
That criteria is: Bank!A3:A300=MAX(IF(Bank!A3:A300<=F7,Bank!A3:A300))
So it checks the last value in the range A3:A300 that is {=MAX(IF(Bank!A3:A300<=F7,Bank!A3:A300))} and returns the corresponding value (same row) in column I.
The MAX IF array formula finds the maximum value of A3:A300 that is less than or equal to the value in F7.
All dates have a numerical value associated with them (the number of days away from 1/0/1900) so the MAX IF formula finds the most recent date that is less than or equal to the date in F7.
Bookmarks