add countif for 2 columns
Rate quality
Private research annotation
Sign in to add a private research label or note.
Jump to turn (6)
- User
add countif for 2 columns
- Assistant
To add a COUNTIF function for two columns, you can use a combination of the COUNTIF and SUM functions. Here is an example formula:
=COUNTIF(A1:A10,"criteria1") + COUNTIF(B1:B10,"criteria2")
This formula will count the number of cells in columns A and B that meet the specified criteria. You need to replace "A1:A10" with the range of cells in your first column and "criteria1" with the condition you want to count. Similarly, replace "B1:B10" with the range of cells in your second column and "criteria2" with the condition you want to count in the second column.
For example, if you want to count the number of cells in columns A and B that contain the text "apple" and "banana" respectively, the formula would look like this:
=COUNTIF(A1:A10,"apple") + COUNTIF(B1:B10,"banana")
- User