Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 928

Error using countifs function in Excel

$
0
0

I'm trying to use the countifs function to count occurrences of text within a multi-column range when another piece of text appears in a different range.

In the table below, A1:A12 is named colors and b1:e12 is named objects. In this example, the ranges are side by side, but in my actual situation they are separated by many other columns.

My goal would be to count the number of times that the text "airplane" appears with the color "red."

The formula I'm trying to use is

=countifs(colors,"red",objects,"airplane")

but it doesn't work whether I enter it as a simple formula or as an array or if I actually enter the data ranges like this:

=countifs(a1:a12, "red", b1:312, "airplane")

table example


Viewing all articles
Browse latest Browse all 928

Trending Articles