View Single Post
  #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.