Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default how do I reflect a (-) outcome as 0


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default how do I reflect a (-) outcome as 0

Put this formula in any cell other than A1 and you will get a "0" if A1 is
less than zero (negative).
IF(A1<0,"0","Whatever")
If you want a given cell to change to "0" whenever its value goes negative,
you will need a macro. Post back if you need more. HTH Otto
"mike" wrote in message
...



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default how do I reflect a (-) outcome as 0

Mike,
Or do you want the the value to be displayed as 0 in the actual cell (i.e.
no helper cell needed). If so this can be achieved with custom formats:

<Format
<Cells
Click on "Custom"
Enter this: General;"0"

This will display all positive values as their actual value as usual, but
display any negative values as simply 0. Note the negative value is still
located in the cell, it just "Looks" like it's 0.

--
Regards,
Dave


"Otto Moehrbach" wrote:

Put this formula in any cell other than A1 and you will get a "0" if A1 is
less than zero (negative).
IF(A1<0,"0","Whatever")
If you want a given cell to change to "0" whenever its value goes negative,
you will need a macro. Post back if you need more. HTH Otto
"mike" wrote in message
...




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default how do I reflect a (-) outcome as 0

Hi Mike,
If the cell in question is a calculated cell, ie, it gets its value from a
formula, then just add an IF statement.
eg
IF(YourFormula<0,0,YourFormula)

"David Billigmeier" wrote:

Mike,
Or do you want the the value to be displayed as 0 in the actual cell (i.e.
no helper cell needed). If so this can be achieved with custom formats:

<Format
<Cells
Click on "Custom"
Enter this: General;"0"

This will display all positive values as their actual value as usual, but
display any negative values as simply 0. Note the negative value is still
located in the cell, it just "Looks" like it's 0.

--
Regards,
Dave


"Otto Moehrbach" wrote:

Put this formula in any cell other than A1 and you will get a "0" if A1 is
less than zero (negative).
IF(A1<0,"0","Whatever")
If you want a given cell to change to "0" whenever its value goes negative,
you will need a macro. Post back if you need more. HTH Otto
"mike" wrote in message
...




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
vba outcome harry buggy Excel Worksheet Functions 5 August 29th 07 03:21 PM
vba outcome harry buggy Excel Worksheet Functions 2 August 29th 07 03:18 PM
How do I caclculate a ratio where the outcome is X to 1 djerome Excel Worksheet Functions 4 August 30th 06 09:53 PM
format the outcome of a formula tinester Excel Discussion (Misc queries) 3 April 12th 06 07:58 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM


All times are GMT +1. The time now is 07:20 PM.

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"