Office & Productivity Software forum

General discussion

Excel - display zeros for negative values

by LLF / November 24, 2005 10:15 AM PST

I am using formulae to generate values in Excel . How can I have the cell show zeros when it's a negative value ?

Discussion is locked
You are posting a reply to: Excel - display zeros for negative values
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Excel - display zeros for negative values
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Rather simple, actually;
by El Alquimista / November 24, 2005 11:04 AM PST

just include an IF in your formula. For example, if , F4 contains Formula1

change it to =IF(Formula1<0, 0, Formula1)

This will check if the result is less than zero; if so, it will insert a zero, if not, it will calculate the actual result.

If your original formula is quite lengthy, this new formula will, of course, be twice as lengthy. An alternative would be to store the raw result in another location, perhaps a hiden one, then test that result in the desired location (F4 in my example).

Hope this helps


Collapse -
Got it , thanks !
by LLF / November 24, 2005 12:36 PM PST

Thanks .

Collapse -
(NT) (NT) Glad I could help
by El Alquimista / November 24, 2005 11:35 PM PST
In reply to: Got it , thanks !
Popular Forums
Computer Help 51,912 discussions
Computer Newbies 10,498 discussions
Laptops 20,411 discussions
Security 30,882 discussions
TVs & Home Theaters 21,253 discussions
Windows 10 1,672 discussions
Phones 16,494 discussions
Windows 7 7,855 discussions
Networking & Wireless 15,504 discussions


Samsung Galaxy S8's major makeover

This year's flagship phone gets a sexy new design and Bixby, a house-made digital assistant.