Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gavin
 
Posts: n/a
Default "Between" in an IF clause

I have the following formula which works OK:

=IF(ISBLANK(AJ2),"",IF(H2<40,'Jobs (2)'!F2*0.682,IF(H2130,'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?


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

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

where X is your new value.





In article ,
"gavin" wrote:

I have the following formula which works OK:

=IF(ISBLANK(AJ2),"",IF(H2<40,'Jobs (2)'!F2*0.682,IF(H2130,'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?

  #3   Report Post  
Bill Kuunders
 
Posts: n/a
Default

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

"gavin" wrote in message
...
I have the following formula which works OK:

=IF(ISBLANK(AJ2),"",IF(H2<40,'Jobs (2)'!F2*0.682,IF(H2130,'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?




  #4   Report Post  
Dan Chupinsky
 
Posts: n/a
Default

I believe all your needs can be met by following the procedure described in
http://www.mcgimpsey.com/excel/variablerate.html

This excellent method has solved similar problems for me.

Dan

"gavin" wrote in message
...
I have the following formula which works OK:

=IF(ISBLANK(AJ2),"",IF(H2<40,'Jobs (2)'!F2*0.682,IF(H2130,'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?




  #5   Report Post  
gavin
 
Posts: n/a
Default

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


Regards,



Gavin





"Bill Kuunders" wrote in message
...
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

"gavin" wrote in message
...
I have the following formula which works OK:

=IF(ISBLANK(AJ2),"",IF(H2<40,'Jobs (2)'!F2*0.682,IF(H2130,'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?








  #6   Report Post  
Bill Kuunders
 
Posts: n/a
Default

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

--
Greetings from New Zealand
Bill K

"gavin" wrote in message
...
Doh! Why didn't I think of that??? That's Bill - much appreciated.


Regards,



Gavin





"Bill Kuunders" wrote in message
...
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

"gavin" wrote in message
...
I have the following formula which works OK:

=IF(ISBLANK(AJ2),"",IF(H2<40,'Jobs (2)'!F2*0.682,IF(H2130,'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?








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to protect the query use for a Pivot that uses 'Get External D Javier Excel Discussion (Misc queries) 6 February 4th 05 03:09 PM


All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"