Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rich
 
Posts: n/a
Default cell calculation check if result is negative and zero out if not l

Formula in cell =(B5-A5) I want to check if result is negative and if so
replace result with 0

So this cell will either be a positive number or zero.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default cell calculation check if result is negative and zero out if not l

=MAX(0,(B5-A5))

Vaya con Dios,
Chuck, CABGx3



"Rich" wrote:

Formula in cell =(B5-A5) I want to check if result is negative and if so
replace result with 0

So this cell will either be a positive number or zero.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default cell calculation check if result is negative and zero out if not l

=MAX(B5-A5,0)

--
HTH

RP
"Rich" wrote in message
...
Formula in cell =(B5-A5) I want to check if result is negative and if so
replace result with 0

So this cell will either be a positive number or zero.




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



All times are GMT +1. The time now is 02:26 PM.

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

About Us

"It's about Microsoft Excel"