A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi Daniyar,
Thanks for contacting us,
It seems like you are trying to use the CELL function with the COUNTIF function to count cells with a specific fill color. However, there's an issue with the syntax of your formula.
The correct formula would be:
=COUNTIF(A1:C10,CELL("color",A1)=3)
In this formula:
-
A1:C10is the range you want to count cells in. -
CELL("color", A1)returns the color index of the cell A1. -
=3checks if the color index is 3, which typically corresponds to the color green.
Make sure you are entering the formula correctly, and if you are still encountering errors, there may be variations in how different versions of Excel handle the CELL function for color. In some versions, you might need to use GET. CELL instead of CELL.
Here is an example using GET. CELL:
=COUNTIF(A1:C10,GET. CELL(63,A1)=3)
In this formula, GET. CELL(63, A1) returns the color index of the cell A1, and =3 checks if it's the green color index.
Please try these variations and see if they work for you.
I hope this helps!
Regards, Sola