Formula to calculate percentage of cells with 'X' in Numbers for Mac

In Numbers on a Mac, help me write a formula that shows the percentage of cells in a column that contain an X and the number of cells in the column is 16 please.

HomePod, 27

Posted on Oct 11, 2026 11:46 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 12, 2026 9:33 AM

The parentheses are wrong but it's not really your fault as Numbers will "help" you by introducing its own parentheses when you select a function. (They are the little "crescent" icons you see at the end of your formula above.)


So, let's simplify the formula entry by just specifying the COUNTIF function. In the cell, start typing =COUNTIF. Numbers will then show you this:



Click the green COUNTIF suggestion in green to see this:



Click "test-array" and then select the cells E2 to E17 (my example uses A2 to A17 but it is absolutely the same):



Click "condition" and type "=X", including the quotes:



Press the return key to validate the formula:



In my example, 3 rows contain the value "X", so the function return value is 3, which is displayed as 300%.


If everything looks good, double click the cell (to enter edit mode), type "/COUNT" (without the quotes) and select COUNTA in the suggestion list:



You should see:



Click "value" and select the cells E2 to E17 (my example still uses A2 to A17), you can also type "E2:17" (without the quotes) as selecting the cells can be tricky at this point:



Press the return key to validate the formula:


41 replies

Formula to calculate percentage of cells with 'X' in Numbers for Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.