Excel - How to count number of rows in range (i.e. various columns) that contain certain string?

前端 未结 3 1739
再見小時候
再見小時候 2021-01-25 23:54

I have a list A of strings and I want to see if and if yes in how many rows each string is represented in range B. My data looks something like this:

List A:

<         


        
3条回答
  •  执笔经年
    2021-01-26 00:53

    In the following image

    B is the name for the range A1:C4. In F1 (next to the first element in your list A), enter:

    =SUM(IF(COUNTIF(OFFSET(B,ROW(B)-1,0,1),E1)>0,1,0)
    

    (entered with Ctrl + Shift + Enter) and copy down.

    It should be flexible enough to handle a B which grows to more rows and columns.

提交回复
热议问题