Formula needs something--#REF!??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The below formula won't work for me, what I'm trying to
achieve is if K16 > J16 AND K27+L31 > J27, AND K27+L31 <=
I122, result if true cannot be more than K16-K27+L31, but
can be <=, if over, 0. Can someone help me?

=IF(AND(K16>J16,K27+L31>J27,K27+L31<=I122),K27+L31-J27(MAX=
(K16-K27+L31),0))
 
Hi
try:
=IF(AND(K16>J16,K27+L31>J27,K27+L31<=I122),MAX(MIN(K27+L31-J27,K16-K27+
L31),0),"")
 
Thanks Frank.
-----Original Message-----
Hi
try:
=IF(AND(K16>J16,K27+L31>J27,K27+L31<=I122),MAX(MIN (K27+L31-J27,K16-K27+
L31),0),"")


--
Regards
Frank Kabel
Frankfurt, Germany



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

WRONG RESULT 9
if function? 2
major stressor 2
Formula Not Working 5
logical test, array, text and numbers 1
Userform not working 1
Complicated If Equation 1
Sum If formula with Conditional Formatting 3

Back
Top