Excel - extracting data based on another list

后端 未结 4 902
南方客
南方客 2021-02-07 05:27

I have an Excel worksheet with two columns (name/ID) and then another list that is a subset of the names only from the larger aforementioned list. I want to go through the subse

4条回答
  •  爱一瞬间的悲伤
    2021-02-07 05:49

    New Excel versions

    =IF(ISNA(VLOOKUP(A1,B,B,1,FALSE)),"",A1)

    Older Excel versions

    =IF(ISNA(VLOOKUP(A1;B:B;1;FALSE));"";A1)

    That is: "If the value of A1 exists in the B column, display it here. If it doesn't exist, leave it empty."

提交回复
热议问题