Google Spreadsheet, Count IF contains a string

后端 未结 6 907
情话喂你
情话喂你 2020-12-10 00:35

I have a column like this:

What devices will you be using?

iPad
Kindle & iPad
No Tablet
iPad
iPad & Windows

How do I coun

6条回答
  •  离开以前
    2020-12-10 01:20

    Wildcards worked for me when the string I was searching for could be entered manually. However, I wanted to store this string in another cell and refer to it. I couldn't figure out how to do this with wildcards so I ended up doing the following:

    A1 is the cell containing my search string. B and C are the columns within which I want to count the number of instances of A1, including within strings:

    =COUNTIF(ARRAYFORMULA(ISNUMBER(SEARCH(A1, B:C))), TRUE)
    

提交回复
热议问题