Find a value in a range of cells as a substring

前端 未结 2 1844
梦如初夏
梦如初夏 2021-01-23 15:58

On tab 1, I have a column where each cell in that column has a group of numbers, and another column where that group of numbers is associated with a name. Example:

2条回答
  •  耶瑟儿~
    2021-01-23 16:47

    Entered as an array formula (Ctrl-Shift-Enter) and copied down, this works:

    =INDEX($B$1:$B$4,MATCH(TRUE,ISNUMBER(SEARCH(","&D8&",",","&$A$1:$A$4&",")),0))
    

    enter image description here

提交回复
热议问题