Find a matching value in column then in row

后端 未结 1 1879
隐瞒了意图╮
隐瞒了意图╮ 2021-01-23 02:51

This is difficult to explain in the question title. I have a multi-page Excel file that I need to do a look up in. Sheet1 has the values that I\'m looking for and <

相关标签:
1条回答
  • 2021-01-23 03:27

    To get the ABS minimum difference,

    =AGGREGATE(15, 6, ABS(J2-INDEX(Sheet11!D:N, MATCH(E2, Sheet11!A:A, 0), 0)), 1)
    

    To get CT-01 for RD190A and CT-03 for RD190C,

    =INDEX(Sheet11!$1:$1, AGGREGATE(15, 6, COLUMN(D:N)/(ABS(J2-INDEX(Sheet11!D:N, MATCH(E2, Sheet11!A:A, 0), 0))=AGGREGATE(15, 6, ABS(J2-INDEX(Sheet11!D:N, MATCH(E2, Sheet11!A:A, 0), 0)), 1)), 1))
    

    First get the smallest ABS (i.e. absolute value) difference in pricing. Next use that figure in a similar wrapping function to retrieve the CT-xx number.

    0 讨论(0)
提交回复
热议问题