Excel:根据数字在范围内的位置输出数字的最佳方式是什么?

Excel: What's the best way to output a number based on it's place in a range?

A1 将落在我的示例数据的范围内。搜索 A1 的范围以将 D 单元格编号输出到 E1 的最佳方法是什么?

示例 1:

示例 2:

使用以下 INDEX/MATCH:

=INDEX(D:D,MATCH(A2,C:C,-1))