简体   繁体   中英

Finding the cell to the right of the index match

      D          E         F
8   1089.80    35.87    1079.82
9   1079.81    35.95
10  1079.84    35.78

Currently I am finding the value in Column D that is closest to the value in cell F8 (1079.82).

=INDEX(D8:D10,MATCH(MIN(ABS(D8:D10-F8)),ABS(D8:D10-F8),0))

This formula is correct and returns 1079.81, but I am looking to return the value to the right of 1079.81 which is 35.95.

Any tips on how to return the value in the cell to the right of the index match? I know you can add +1 but this just returns the value in the column below the index match.

增加要查找的数组并添加列号“2”:

=INDEX(D8:E10,MATCH(MIN(ABS(D8:D10-F8)),ABS(D8:D10-F8),0),2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM