ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   number < 0 = 0 (https://www.excelbanter.com/excel-worksheet-functions/78571-number-0-%3D-0-a.html)

yaypalmtrees

number < 0 = 0
 
I am trying to conduct inventory of hardware. I need to know based on what i
have, what i need to order. When i place the needed qty, and subtract the
instock qty, sometimes i receive a neg. number. What formula do i use, so
that instead of a neg. number, it automatically shows up as a "0"?

Dave Peterson

number < 0 = 0
 
maybe...

=max(0,youroriginalformulahere)

yaypalmtrees wrote:

I am trying to conduct inventory of hardware. I need to know based on what i
have, what i need to order. When i place the needed qty, and subtract the
instock qty, sometimes i receive a neg. number. What formula do i use, so
that instead of a neg. number, it automatically shows up as a "0"?


--

Dave Peterson

intruder9

number < 0 = 0
 

Supose A1 was Instock, B1 was Needed and C1 was your answer of A1-B1
In D11 use this =If(C1<=0,0,C1)


--
intruder9
------------------------------------------------------------------------
intruder9's Profile: http://www.excelforum.com/member.php...o&userid=30107
View this thread: http://www.excelforum.com/showthread...hreadid=524547


intruder9

number < 0 = 0
 

Supose A1 was Instock, B1 was Needed and C1 was your answer of A1-B1
In D1 use this =If(C1<=0,0,C1) or make C1 this formula
=If(A1-B1<=0,0,A1-B1)


--
intruder9
------------------------------------------------------------------------
intruder9's Profile: http://www.excelforum.com/member.php...o&userid=30107
View this thread: http://www.excelforum.com/showthread...hreadid=524547


yaypalmtrees

number < 0 = 0
 
Thank you so much. =If(A1-B1<=0,0,A1-B1) did exactly what i needed it to do.

"intruder9" wrote:


Supose A1 was Instock, B1 was Needed and C1 was your answer of A1-B1
In D1 use this =If(C1<=0,0,C1) or make C1 this formula
=If(A1-B1<=0,0,A1-B1)


--
intruder9
------------------------------------------------------------------------
intruder9's Profile: http://www.excelforum.com/member.php...o&userid=30107
View this thread: http://www.excelforum.com/showthread...hreadid=524547




All times are GMT +1. The time now is 09:17 PM.

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