Explanation
This formula uses the LOOKUP function to find and retrieve the last matching file name.
Next, the array is used as the denominator with 1 as numerator.
The result looks like this:
which goes into LOOKUP as the lookup_vector.
This is a tricky solution to challenge #2.
The LOOKUP function operates in approximate match mode only, and automatically ignores error values.
Finally, LOOKUP uses 7 like an index to retrieve the 7th file in the list of files.
LOOKUP’s default behavior makes it useful for solving certain problems in Excel.
When the text is not found, FIND returns a #VALUE error.