"Between" in an IF clause

G

gavin

I have the following formula which works OK:

=IF(ISBLANK(AJ2),"",IF(H2<40,'Jobs (2)'!F2*0.682,IF(H2>130,'Jobs
(2)'!F2*0.781,"0")))

But I need to add another IF clause to account for values in H2 which lie
between 40 and 130. How do I do that - I just can't work it out?
 
J

JE McGimpsey

One way:

=IF(ISBLANK(AJ2),"",'Jobs (2)'!F2*IF(H2<40,0.682,IF(H2>130,0.781,X)))

where X is your new value.
 
B

Bill Kuunders

You have already got it.
not blank, not smaller than 40 and not larger than130 ...........
i.e. in stead of "0" at the end , enter what ever factor you need.

Regards
Greetings from New Zealand
Bill K
 
G

gavin

Doh! Why didn't I think of that??? That's Bill - much appreciated.


Regards,



Gavin
 
B

Bill Kuunders

You're welcom.
Thanks for the feedback.
Must say though that JE Mc's answer is the same.
Regards
 

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

Top