Google Spreadsheet, Count IF contains a string

后端 未结 6 917
情话喂你
情话喂你 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:21

    You should use

    =COUNTIF(A2:A51, "*iPad*")/COUNTA(A2:A51)

    Additionally, if you wanted to count more than one element, like iPads OR Kindles, you would use

    =SUM(COUNTIF(A2:A51, {"*iPad*", "*kindle*"}))/COUNTA(A2:A51)

    in the numerator.

提交回复
热议问题