admin管理员组

文章数量:1122846

I am trying to get both "Win" and "MTT Cash" results

=COUNTIFS(ResultsLog!C:C,A11,ResultsLog!F:F,"Win" & "MTT Cash")

It works when I just have "Win" but if I add & "MTT Cash"

then it returns 0

All help appreciated

I am trying to get both "Win" and "MTT Cash" results

=COUNTIFS(ResultsLog!C:C,A11,ResultsLog!F:F,"Win" & "MTT Cash")

It works when I just have "Win" but if I add & "MTT Cash"

then it returns 0

All help appreciated

Share Improve this question edited Nov 22, 2024 at 20:29 Patsytalk 7181 gold badge1 silver badge14 bronze badges asked Nov 22, 2024 at 11:27 JontyJonty 271 silver badge8 bronze badges 1
  • Make sure to provide input and expected output as plain text table in the question. Check my answer or other options to create a table easily, which are easy to copy/paste. Avoid sharing links like spreadsheets, which make the question useless for others or images, which are hard to copy. Also, note that your email address can also be accessed by the public, if you share Google files. – TheMaster Commented Nov 22, 2024 at 14:05
Add a comment  | 

2 Answers 2

Reset to default 1

You may try:

=countifs(ResultsLog!C:C,A11,index(xmatch(ResultsLog!F:F,{"Win","MTT Cash"})^0),1)

You may also try QUERY() with matches operator.

=QUERY(ResultsLog!C:F,"select count(C) where C='" & A11 & "' and F matches 'Win|MTT Cash' label count(C) ''")

本文标签: if statementMultiple Criteria in GooGle SheetsStack Overflow