+ Reply to Thread
Results 1 to 6 of 6

"Between" in an IF clause

  1. #1
    gavin
    Guest

    "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(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?



  2. #2
    JE McGimpsey
    Guest

    Re: "Between" in an IF clause

    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.





    In article <[email protected]>,
    "gavin" <[email protected]> wrote:

    > 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?


  3. #3
    Bill Kuunders
    Guest

    Re: "Between" in an IF clause

    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" <[email protected]> wrote in message
    news:[email protected]...
    >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?
    >
    >




  4. #4
    Dan Chupinsky
    Guest

    Re: "Between" in an IF clause

    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" <[email protected]> wrote in message
    news:[email protected]...
    >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?
    >
    >




  5. #5
    gavin
    Guest

    Re: "Between" in an IF clause

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


    Regards,



    Gavin





    "Bill Kuunders" <[email protected]> wrote in message
    news:%[email protected]...
    > 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" <[email protected]> wrote in message
    > news:[email protected]...
    > >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?
    > >
    > >

    >
    >




  6. #6
    Bill Kuunders
    Guest

    Re: "Between" in an IF clause

    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" <[email protected]> wrote in message
    news:[email protected]...
    > Doh! Why didn't I think of that??? That's Bill - much appreciated.
    >
    >
    > Regards,
    >
    >
    >
    > Gavin
    >
    >
    >
    >
    >
    > "Bill Kuunders" <[email protected]> wrote in message
    > news:%[email protected]...
    >> 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" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >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?
    >> >
    >> >

    >>
    >>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1