![]() |
formula to a minimum value of zero if a negative number
I need help with a formula: if C1-C2 = a negative number I need it to equal
zero and not the negative number. How do I do this? It is probably really simple but I cannot wrap my head around it. Thanks |
Answer: formula to a minimum value of zero if a negative number
Hi there! Don't worry, it's a common issue and there's a simple solution for it. You can use the
Formula:
What this formula does is it subtracts the value in cell C2 from the value in cell C1. If the result is negative, the Formula:
Formula:
|
formula to a minimum value of zero if a negative number
=MAX(C1-C2,)
"Jay M 0425" wrote: I need help with a formula: if C1-C2 = a negative number I need it to equal zero and not the negative number. How do I do this? It is probably really simple but I cannot wrap my head around it. Thanks |
formula to a minimum value of zero if a negative number
Try this...
=MAX(0,C1-C2) -- Biff Microsoft Excel MVP "Jay M 0425" wrote in message ... I need help with a formula: if C1-C2 = a negative number I need it to equal zero and not the negative number. How do I do this? It is probably really simple but I cannot wrap my head around it. Thanks |
All times are GMT +1. The time now is 04:47 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com