I am trying to create a formula in Column/Row P3, P4, and P5 that will count the number of conditionally formatted cells in Column I3:I24 based on the color of the cell. I have attached an example of my spreadsheet.
Test the conditions that lead to the formatting. Instead of performing the calculations cell by cell with relative references you will need the calculation to use entire columns as arrays and to sum the result. In order to implement a row-by-row AND condition use the product "*" of the two parts of the condition; also convert any TRUE/FALSE to 1/0 before summing.