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 ?

Post a reply
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 47,885 discussions
Computer Newbies 10,322 discussions
iPhones, iPods, & iPads 3,188 discussions
Security 30,333 discussions
TVs & Home Theaters 20,177 discussions
HDTV Picture Setting 1,932 discussions
Phones 15,713 discussions
Windows 7 6,210 discussions
Networking & Wireless 14,510 discussions

Big stars on small screens

Smosh tells CNET what it took to make it big online

Internet sensations Ian Hecox and Anthony Padilla discuss how YouTube has changed and why among all their goals, "real TV" isn't an ambition.