Google Sheets – Count Column If Criteria Met in Another Column

google sheets

Is there a way to COUNT the cells in column A if the cell in column A equals "X" and the adjacent cell in column B equals "January"?

Best Answer

In case you want to count the occurrences of 'X' (text) with 'January' in adjacent cell, try:

=countif(filter(A:A, B:B="January"), "X")

In case 'X' is actually a numeric value, and you want to sum all those numbers who have 'January' in the adjacent cell, try:

=sumif(B:B, "January", A:A)