Multiple ranges for COUNTIF?
Koko
-
Vaucluse Posted messages 27336 Registration date Status Contributor Last intervention -
Vaucluse Posted messages 27336 Registration date Status Contributor Last intervention -
Hello,
I would like to know if it is possible to integrate multiple ranges into a single COUNTIF function rather than adding several separate COUNTIF functions.
For example, I would like the function to indicate how many times I find the value 3 in the ranges A1:A10, B1:B20, and C1:C15.
Thank you very much,
Configuration: Windows XP / Internet Explorer 7.0
I would like to know if it is possible to integrate multiple ranges into a single COUNTIF function rather than adding several separate COUNTIF functions.
For example, I would like the function to indicate how many times I find the value 3 in the ranges A1:A10, B1:B20, and C1:C15.
Thank you very much,
Configuration: Windows XP / Internet Explorer 7.0
5 answers
-
Hello,
No, you have to sum the countifs().
Eric -
Good evening
actually there is a solution, but only if your tables are not likely to contain the sought values in the overflowing parts of the shortest ranges
you can then write:
=COUNTIF(A1:C20,3)
Crdlmnt
--
Let’s ask ourselves if we are not the only ones to understand what is being explained? -
In the same cell?
--
“Life is like a box of chocolates, you never know what you're gonna get.” -
In fact, I simply want to use the COUNTIF function, but my range spans across several different columns.
If I take my previous example, can the COUNTIF(range;criteria) function contain a range that spans multiple columns? In terms of function, what I'm trying to do would look something like below... but that would actually work!
COUNTIF((A1:A10;B1:B20;C1:C15);3) -
I would have liked to display 15 without having to sum several COUNTIFs.
Since this seems impossible, I will still adopt this technique even though my formulas become a bit cumbersome when multiple columns are used.
Thank you very much for your help,