MATCH or VLOOKUP starting from the end of the range

后端 未结 2 1407
广开言路
广开言路 2021-01-19 01:24

I have a table that looks like this

 A      B    
ID1  data 123
ID2  data 234
ID1  data 456
ID2  data 567

I am trying to find the best way

相关标签:
2条回答
  • 2021-01-19 01:55

    I know the question is already answered, but if any one is interested, here is the formula for a multiple criteria backwards lookup. =LOOKUP(2,1/(--(A1:A4=D1)*--(C1:C4=D2)),B1:B4)

    0 讨论(0)
  • 2021-01-19 01:58

    With data in A1:B4 and D1="ID2", try entering in E1:

    =LOOKUP(2,1/(A1:A4=D1),B1:B4)
    

    Note: LOOKUP returns the last value if the lookup value is larger than any of the values in the lookup range. Any errors are ignored.

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