Countifs in Google Sheets with various 'different than' criteria in same row adds +1 value

前端 未结 3 621
萌比男神i
萌比男神i 2020-12-22 04:01

I\'m trying to count all values different than some specific criteria on the same row in a Google sheet that is feed via a google form but the final count shows \"1\".

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-22 04:30

    you are getting 1 as one error counted. do it like this:

    =COUNTA(QUERY(datos!B2:B, "where not B contains 'PC Tipo 1 (HP)' 
                                 and not B contains 'PC Tipo 2 (Lenovo)'
                                 and not B contains 'PC Tipo 3 (Dell)'
                                 and not B contains 'Laptop Tipo 1 (Lenovo)'
                                 and not B contains 'Laptop Tipo 2 (Thinkpad)'
                                 and not B contains 'Tel Cel.'", 0))
    

提交回复
热议问题