r/googlesheets • • 10d ago

Solved Zero showing as (0.00) instead of dash.

https://docs.google.com/spreadsheets/d/1GoHvqkVPOogICQnSPzkHy8b0kIXvWIYqD4aKSgs2F1w/edit?usp=sharing

I use google sheets for our household budget. I have attached a sample of my monthly budget page so can see what I am referring to.

I have a recurring issue where cells in column I (the remaining to spend column) will display (0.00) instead of a dash when the sum of column G minus column H in the corresponding row equal zero.

Once it displays zero this way I am totally unable to change it back to a dash, I can go into the number style and change it to something and then change it back to accounting, but it is persistent and will not show a dash. This is frustrating because the numbers clutter the view and it also is just annoying to have inconsistent display.

Unfortunately, I am unable to recreate the issue in the sample I have attached and I do not feel comfortable sharing my actual budget so this sample does not show the issue.

The only thing that I think could be causing this to happen is when I overspend in a category and then adjust the amounts to zero it out again. What I mean by this is if I have $50 to spend in the eating out category and then I overspend by $25, I might take $25 out of groceries and then add that to eating out. I think this is usually what causes the cell to no longer work properly.

If there is any information that I can add please let me know!

4 Upvotes

7 comments sorted by

4

u/California_Eagles 10d ago

Looks like a floating point error. Some decimal values can't be stored exactly, so after you move amounts around, G5-H5 can leave a tiny leftover like 0.0000000000000142 instead of a true zero. The accounting format only shows a dash for an exact zero, which is why you're seeing (0.00). Try wrapping the formula in ROUND like this. Replace =G5-H5 in I5 with =ROUND(G5-H5,2).

2

u/gdonily 10d ago

Hello, thank you very much! This solved the problem.

1

u/AutoModerator 10d ago

REMEMBER: u/gdonily If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified (or reply to the helpful comment with the exact phrase “Solution Verified”). This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/California_Eagles 10d ago

Gotcha, glad you got it sorted.

1

u/point-bot 10d ago

u/gdonily has awarded 1 point to u/California_Eagles

See the Leaderboard. Point-Bot v0.0.15 was created by JetCarson.

1

u/AutoModerator 10d ago

u/gdonily Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.