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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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