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? |
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 |
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? |
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 |
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 |
All times are GMT +1. The time now is 03:48 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com