You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Apple Fitness+ unveils an exciting lineup of new ways to stay active and mindful in 2025

Offerings include new programs for strength, pickleball, yoga, and breath meditation, and a new collaboration with Strava. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

format

how to hide zeros


Posted on Jul 25, 2022 9:50 AM

Reply
4 replies

Jul 25, 2022 12:23 PM in response to GoinJesse

If you actually want to hide the zeroes, but do not want to remove them, you could use a Conditional highlighting rule to set the Text colour of the cells to match the background colour when the cell contained the number zero.



In the examples above, each of the body cells contains the formula RANDBETWEEN(0,5)

The formula recalculates whenever there is a change in the table. Clicking the checkbox in A1 toggles the value in that cell between true and false.

The second table is simply a copy of the first, and has had the checkbox clicked at least once since it was made.


Regards,

Barry

Jul 25, 2022 8:27 PM in response to GoinJesse

I just choose my 'Hide 0s' Custom Format from the Data Format dropdown.





Result:






Setting up a Custom Format is easy.


Choose 'Create Custom Format' at the bottom of the Data Format list (see first screenshot).


Click 'Add a Rule', choose 'if equal to' and enter 0.


Then set it up the rest of the custom format. It should look something like this:




An advantage of Custom Format over Conditional Highlighting is that you don't have to worry about matching the background color.

SG

Jul 25, 2022 11:38 AM in response to GoinJesse

when you say hide zeros. can you be more specific?


assuming you literally mean a cell that has a formula whose result is zero you want to be blank.


if this is the case, then assuming there is an existing formula... assuming that is represented by

<existing formula>


select the cell with the existing formula and select the whole formula

then cut (<command> + x)


then type:

if(<existing formula>=0, "", <existing formula>)

having replaced <existing formula> with the actual formula

format

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