ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   create a formula in excel to prevnt negative (https://www.excelbanter.com/excel-worksheet-functions/50507-create-formula-excel-prevnt-negative.html)

neil@snowandjones

create a formula in excel to prevnt negative
 
here is my formula to show in cell E4 =(A4*0.02)+((C4-A4)*0.03)
However, i do not want to calculation made if the value of C4 is less than
the value of A4.
For the purposes of this result, this will make an invalid result.



Hi

Try this:
=MAX((A4*0.02)+((C4-A4)*0.03),0)

Andy.

"neil@snowandjones" wrote in
message ...
here is my formula to show in cell E4 =(A4*0.02)+((C4-A4)*0.03)
However, i do not want to calculation made if the value of C4 is less than
the value of A4.
For the purposes of this result, this will make an invalid result.




Ian

=IF(C4<A4,"",(A4*0.02)+((C4-A4)*0.03))

--
Ian
--
"neil@snowandjones" wrote in
message ...
here is my formula to show in cell E4 =(A4*0.02)+((C4-A4)*0.03)
However, i do not want to calculation made if the value of C4 is less than
the value of A4.
For the purposes of this result, this will make an invalid result.





Sorry! I read your subject and not your post!

Andy.

"neil@snowandjones" wrote in
message ...
here is my formula to show in cell E4 =(A4*0.02)+((C4-A4)*0.03)
However, i do not want to calculation made if the value of C4 is less than
the value of A4.
For the purposes of this result, this will make an invalid result.




neil@snowandjones

Thanx Ian.
Worked a charm
Neil.

"Ian" wrote:

=IF(C4<A4,"",(A4*0.02)+((C4-A4)*0.03))

--
Ian
--
"neil@snowandjones" wrote in
message ...
here is my formula to show in cell E4 =(A4*0.02)+((C4-A4)*0.03)
However, i do not want to calculation made if the value of C4 is less than
the value of A4.
For the purposes of this result, this will make an invalid result.





Ian

No problem. Thanks for the feedback.

--
Ian
--
"neil@snowandjones" wrote in
message ...
Thanx Ian.
Worked a charm
Neil.

"Ian" wrote:

=IF(C4<A4,"",(A4*0.02)+((C4-A4)*0.03))

--
Ian
--
"neil@snowandjones" wrote
in
message ...
here is my formula to show in cell E4 =(A4*0.02)+((C4-A4)*0.03)
However, i do not want to calculation made if the value of C4 is less
than
the value of A4.
For the purposes of this result, this will make an invalid result.








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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com