Discussion Locked

Testing value of 2 cells in COUNTIF()

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a way to test for values in two different cells of a row when using COUNTIF() in a column? In other words,something like COUNTIF ((b3="x") AND (b4=3)). I would also like to know how to test a cell for the color fill pattern and count it if it is a certain fill color.

2 replies

by it_cowboy

You can concatenate the two values then look for the value they create when they are joined together with the COUNTIF function.

For Example: In B5, create a formula "=B3&B4" which will produce "X3". Then create COUNTIF("Row 5 range","X3").

This discussion is closed to new replies.