#1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default displaying values

I need help with a formula:

If the value of a cell is a negative number, display 0, but if the
value in the cell is a positive number, display the value.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default displaying values

FormatCellsNumber tabCustom
In the Type box, enter

#0;"0"

--
Kind regards,

Niek Otten

wrote in message
oups.com...
I need help with a formula:

If the value of a cell is a negative number, display 0, but if the
value in the cell is a positive number, display the value.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default displaying values

If you wanted to do this with a formula you would have to enter the
formula in a separate cell. However, you can do it with formatting.
Select the cell and Format | Cell | Custom and enter:

0.0;"0";"0"

Both zero and negative numbers will be displayed as 0, positive numbers
as 1 decimal place.

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.misc
IrishKB
 
Posts: n/a
Default displaying values

Explain it again, but differently, use examples.

" wrote:

I need help with a formula:

If the value of a cell is a negative number, display 0, but if the
value in the cell is a positive number, display the value.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Return Range of Numerical Values in Single Column based on Frequency Percentage Sam via OfficeKB.com Excel Worksheet Functions 9 October 28th 05 11:01 PM
Displaying null values in charts Iain ASLD Charts and Charting in Excel 2 October 26th 05 12:24 PM
#N/A Values : Returned by Formulas vs Entered Manually monir Charts and Charting in Excel 8 July 7th 05 01:16 AM
Displaying values from zero on graph Marc Excel Discussion (Misc queries) 0 April 14th 05 09:21 PM


All times are GMT +1. The time now is 01:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"