Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
if formula return true value
How can I get an if formula to return the difference of two cells but not
more than the value of another cell? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
if formula return true value
=max(a1,b1-c1)
or maybe =max(a1,abs(b1-c1)) b1 and c1 are the two cells to compare. A1 is the cell not to exceed. Theresa wrote: How can I get an if formula to return the difference of two cells but not more than the value of another cell? -- Dave Peterson |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
if formula return true value
something like =IF((A1-B1)<=C1,A1-B1,C1)
or in plain english ............. If A1-B1 is smaller or equal than C1 display the result of A1-B1 otherwise display the contents of C1 assuming A1 is always larger than B1 if not you may have to have an "absoluut" condition in the function =IF(ABS(A2-B2)<=C2,ABS(A2-B2),C2) -- Greetings from New Zealand "Theresa" wrote in message ... How can I get an if formula to return the difference of two cells but not more than the value of another cell? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
if formula return true value
I think you may have intended MIN rather than MAX, Dave?
It always seems strange that to limit a formula to a maximum value one uses the MIN function, so my mental agility sometimes struggles with the problem. :-) -- David Biddulph "Dave Peterson" wrote in message ... =max(a1,b1-c1) or maybe =max(a1,abs(b1-c1)) b1 and c1 are the two cells to compare. A1 is the cell not to exceed. Theresa wrote: How can I get an if formula to return the difference of two cells but not more than the value of another cell? -- Dave Peterson |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
if formula return true value
Thanks for the correction, David.
David Biddulph wrote: I think you may have intended MIN rather than MAX, Dave? It always seems strange that to limit a formula to a maximum value one uses the MIN function, so my mental agility sometimes struggles with the problem. :-) -- David Biddulph "Dave Peterson" wrote in message ... =max(a1,b1-c1) or maybe =max(a1,abs(b1-c1)) b1 and c1 are the two cells to compare. A1 is the cell not to exceed. Theresa wrote: How can I get an if formula to return the difference of two cells but not more than the value of another cell? -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formula to return a true blank | Excel Worksheet Functions | |||
Search for 2 true arguments and return true or false | Excel Discussion (Misc queries) | |||
Easy formula to return a true or false | Excel Worksheet Functions | |||
Function to return True/False if all are validated as True by ISNU | Excel Worksheet Functions | |||
formula to return the value of a cell based on a looked up true reference | Excel Worksheet Functions |