How do I replace negative numbers with zero in Excel.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need a formula in excel to only output numbers greater than zero and
replace any negative number with zero. The spreadsheet I'm setting up will
be used to controle inventory and when my inventory on an item is greater
than my par for that item it is ordering a negative number of replacements.
the problem is then compounded because the negative number of replacement
items is then used to calculate my future inventory in the spreadsheet.
Thanks.
 
Here is a quick sample:
The following is entered in an empty Cell or Column - I used Column
for the following formula - the value you want to evaluate is in Cel
A2.
=IF(A2>0,A2,0)
Read as: if A2 is greater than 0, then I want the value of A2 in cel
B2 - If the value is 0 or less than 0, (i.e. -1) then the value is 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top