#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default make a minus a zero

How can I turn a minus result into a zero.

For example....

Column A = Stock Levels Needed /50
Column B = Actual Stock Levels /60
Column C = Plan to produce (A-B) /-10
Column D = Predicted Sales
Column E = Actual Sales /30
Column F = Predicted Stock (B+C-E) /20

If coulmn C returns a minus value then Column F returns an incorrect value.
The numbers after the / reflect the numbers my formulae returns. Where in
actual fact Column F should read 30 as there is 60 on stock, I only need to
keep 50 so I don't need to make any. I've sold 30 so I should have 30 left.
But because Column C is a minus value it takes that off too. If the result
of Column C is a positive value then it works fine.

Hope I've explained this good enough.
Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 303
Default make a minus a zero

In C change the formula to =IF(B2A2,0,A2-B2)
and extend it down.

Greetings from New Zealand
"James" wrote in message
...
How can I turn a minus result into a zero.

For example....

Column A = Stock Levels Needed /50
Column B = Actual Stock Levels /60
Column C = Plan to produce (A-B) /-10
Column D = Predicted Sales
Column E = Actual Sales /30
Column F = Predicted Stock (B+C-E) /20

If coulmn C returns a minus value then Column F returns an incorrect
value.
The numbers after the / reflect the numbers my formulae returns. Where in
actual fact Column F should read 30 as there is 60 on stock, I only need
to
keep 50 so I don't need to make any. I've sold 30 so I should have 30
left.
But because Column C is a minus value it takes that off too. If the
result
of Column C is a positive value then it works fine.

Hope I've explained this good enough.
Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default make a minus a zero

"James" wrote:
How can I turn a minus result into a zero.
[....]
Column C = Plan to produce (A-B) /-10


The formula in column C should be of the form:

=MAX(0, A1-B1)


----- original message -----

"James" wrote in message
...
How can I turn a minus result into a zero.

For example....

Column A = Stock Levels Needed /50
Column B = Actual Stock Levels /60
Column C = Plan to produce (A-B) /-10
Column D = Predicted Sales
Column E = Actual Sales /30
Column F = Predicted Stock (B+C-E) /20

If coulmn C returns a minus value then Column F returns an incorrect
value.
The numbers after the / reflect the numbers my formulae returns. Where in
actual fact Column F should read 30 as there is 60 on stock, I only need
to
keep 50 so I don't need to make any. I've sold 30 so I should have 30
left.
But because Column C is a minus value it takes that off too. If the
result
of Column C is a positive value then it works fine.

Hope I've explained this good enough.
Thanks in advance.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you make a cell always negative without entering a minus each JoJoColorado Excel Discussion (Misc queries) 3 April 5th 23 02:47 PM
How to change all cells from minus to plus and plus to minus Rockbear Excel Worksheet Functions 4 April 3rd 23 04:28 PM
CHANGE TRAILING MINUS TO BRACKETS OR PRECEEDING MINUS Socal Analyst looking for help Excel Discussion (Misc queries) 2 May 12th 06 07:17 PM
How make the sum red when the sum is minus? Janne Excel Discussion (Misc queries) 2 January 28th 06 10:05 PM
Value Minus Value = ??? Emzicle Excel Discussion (Misc queries) 9 August 23rd 05 08:22 PM


All times are GMT +1. The time now is 04:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"