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.

Excel formula: Get nth match with INDEX / MATCH

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.

Excel formula: Get relative row numbers in range

LOOKUP’s default behavior makes it useful for solving certain problems in Excel.

When the text is not found, FIND returns a #VALUE error.

Excel formula: Get last match

Excel formula: Lookup last file revision

Excel LOOKUP function

Excel ISNUMBER function

Excel FIND function