Ensuring a cell doesn't show a negative number

ForeverUnited

Board Regular
Joined
Jul 7, 2010
Messages
80
Office Version
  1. 365
Platform
  1. MacOS
Hi,

I have the following code in N2

=(E2*0.1)-35

And it is showing a negative number which is correct. The issue is, I want it to show 0 if the number is negative, how can I achieve this please?

Thanks again.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

You could test following

=IF(E2<350,0,(E2*0.1)-35)

Hope this will help
 
Upvote 0
Hi,

I now have this one:

=P2*0.2

In R2, bu again would like to ensure that doesn't show a negative number (show 0 if it would have been negative).

I have tried working it out myself using the se formulas but just can't get it, can someone please help?

Thanks.
 
Upvote 0
=MAX(0,P2*0.2)

should suffice.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top