Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Balder
 
Posts: n/a
Default cell value constraint

We have columnA, columnB, column C, columnD. the formula is D=A-B-C.
D must be above at least zero. In case the result is below 0, i need to
convert the value obtained to 0. in case it's above zero, it should remain
so.
Thank you.
  #2   Report Post  
PCLIVE
 
Posts: n/a
Default

One way,

=IF(A1-B1-C1<0,0,A1-B1-C1)

HTH,
Paul


"Balder" wrote in message
...
We have columnA, columnB, column C, columnD. the formula is D=A-B-C.
D must be above at least zero. In case the result is below 0, i need
to
convert the value obtained to 0. in case it's above zero, it should
remain
so.
Thank you.



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=MAX(0,A-B-C)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Balder" wrote in message
...
We have columnA, columnB, column C, columnD. the formula is D=A-B-C.
D must be above at least zero. In case the result is below 0, i need

to
convert the value obtained to 0. in case it's above zero, it should

remain
so.
Thank you.



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
how to create a variable column in cell reference Sampson Excel Worksheet Functions 3 February 21st 05 10:13 PM
How can I get a cell locked if the condition is false? FareedAhmed76 Excel Worksheet Functions 1 February 18th 05 01:49 PM
Can a Formula in Cell X modify Cell Y? alMandragor Excel Discussion (Misc queries) 7 February 10th 05 09:51 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


All times are GMT +1. The time now is 11:02 PM.

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"