Three Dimensional Lookup Using INDEX/MATCH

前端 未结 11 1282
闹比i
闹比i 2020-12-01 14:28

This was taken and improved slightly from Question that has since been deleted

For those who can see deleted posts, it was taken from here: https://

11条回答
  •  醉酒成梦
    2020-12-01 14:38

    You can use two other INDEX/MATCH's inside the first MATCH to set the lookup range. Then you simply need to add the MATCH() to find the absolute position of the name.

    =INDEX(A:D,MATCH($H$4,INDEX(A:A,MATCH($H$3,A:A,0)):INDEX(A:A,MATCH($H$3,A:A,0)+4),0)+MATCH($H$3,A:A,0)-1,MATCH($H$5,$1:$1,0))
    


    This one works better and does not have a size constraint:

    =INDEX(A:D,MATCH(F4,INDEX(A:A,MATCH(F3,A:A,0)):A1040000,0)+MATCH(F3,A:A,0)-1,MATCH(F5,A1:D1,0))
    

提交回复
热议问题