Using countif function with values in non-adjacent cells
I'm trying to use countif function to do a conditional count for cells in non-adjacent rows. Below is a simple example of what I'm trying to do. The image shows that only the cells I want the count to be based on are highlighted. But instead of giving a result of 2 (2 of the 4 cells contain the value 3), it gives 0. I have tried various conditions but never get a correct result. What am I doing wrong?
Thanks in advance!
MacBook Pro 15″, macOS 12.6