IF AND question corrected

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

Guest

How would I write a function with the following conditions

If H1 < 1.7 and K2 <1 return 1.7
If H1 < 1.7 and K2 is between 1 and 2 return 2 (if k2 = 1 return 1, if k2 =
2 return 2)
If H1 < 1.7 and K2 is between 2 and 3 return 3 (if k2 = 3 return 3)
If H1 < 1.7 and K2 > 3 return 3
If H1 >= 1.7 return 1.7

Sorry for the errors in my previous post

Lee
 
How would I write a function with the following conditions

If H1 < 1.7 and K2 <1 return 1.7
If H1 < 1.7 and K2 is between 1 and 2 return 2 (if k2 = 1 return 1, if k2 =
2 return 2)
If H1 < 1.7 and K2 is between 2 and 3 return 3 (if k2 = 3 return 3)
If H1 < 1.7 and K2 > 3 return 3
If H1 >= 1.7 return 1.7

Sorry for the errors in my previous post

Lee


=IF(OR(H1>=1.7,AND(H1<1.7,K2<1)),1.7,MIN(3,CEILING(K2,1)))
--ron
 

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


Back
Top