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

前端 未结 3 1737
再見小時候
再見小時候 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:32

    There have already been some great answers posted here, but I thought I would add one more. If you are working with a large data set, this formula could come in handy in terms of speed. You can place the formula in F1 (See image below) and copy down. You will need to use CTRL + SHIFT + ENTER when entering the formula.

    =SUM(IF(FREQUENCY(IF(E1=$A$1:$C$3,ROW($A$1:$C$3)),IF(E1=$A$1:$C$3,ROW($A$1:$C$3)))>0,1))
    

提交回复
热议问题