MATCH or VLOOKUP starting from the end of the range

后端 未结 2 1410
广开言路
广开言路 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: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.

提交回复
热议问题