Sample Data
This table shows names and their scores in a test.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Score |
| A2 | Alice |
| B2 | 85 |
| A3 | Bob |
| B3 | 90 |
| A4 | Alice |
| B4 | 78 |
| A5 | David |
| B5 | 90 |
| A6 | Bob |
| B6 | 70 |
This table shows names and their scores in a test.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Score |
| A2 | Alice |
| B2 | 85 |
| A3 | Bob |
| B3 | 90 |
| A4 | Alice |
| B4 | 78 |
| A5 | David |
| B5 | 90 |
| A6 | Bob |
| B6 | 70 |
=COUNTIF(A2:A6, "Alice") + COUNTIFS(B2:B6, ">=80", A2:A6, "Bob")A B 1 |Name |Score | 2 |Alice | 85 | 3 |Bob | 90 | 4 |Alice | 78 | 5 |David | 90 | 6 |Bob | 70 |
A B C 1 |Name |Score |Result| 2 |Alice | 85 | | 3 |Bob | 90 | | 4 |Alice | 78 | | 5 |David | 90 | | 6 |Bob | 70 | 3 |
COUNTIF(range, criteria) do?COUNTIF function is designed to count cells that match one specific condition.COUNTIF(range, criteria). The criteria can be a number without quotes.=COUNTIFS(A1:A5, ">=5", A1:A5, "<7")?=COUNTIFS(A2:A10, "East", B2:B10, ">1000") correctly uses COUNTIFS with Region range and criteria "East", and Sales range with ">1000". =COUNTIF(A2:A10, "East") + COUNTIF(B2:B10, ">1000") adds separate COUNTIFs, which is incorrect. =COUNTIF(A2:A10, "East" & B2:B10, ">1000") concatenates ranges incorrectly. =COUNTIFS(A2:A10, ">1000", B2:B10, "East") swaps criteria and ranges incorrectly.Pass the test and this pattern moves unknown