+ Reply to Thread
Results 1 to 6 of 6

IF Formula with 2 condtions in it...

  1. #1
    Registered User
    Join Date
    01-03-2008
    Posts
    5

    IF Formula with 2 condtions in it...

    Hello,

    I am a bit of an inexperienced user so I hope someone can maybe help me with the following:

    I am not sure if it is possible but I would like to create an conditional formula like the following:

    =IF(D4>40,$AB4+(0.25*E4),IF(D4>60,$AB4+(0.5*E4),$AB4))

    Meaning, I want the cel value to be AB4 +(0.25*E4) if cel D4 is bigger than 40, but at the same time, if cel D4 is bigger than 60, the outcome has to be AB4 +(0.50*E4). If both conditions are not met, I want the cel to be just AB4.

    So actually it is three conditions that I want the formula to check. Now, the problem is that when I use the above mentioned formula, it will only check the first part of formula. So in this case, if D4>40, then it will come up with AB4 +(0.25*E4), if not, it just gives me AB4. Conclusion, it skips my second condition. I have tried with values above 60 but the formula just doesn't recognise it and will not do AB4+(0.5*E4) in case D4>60...

    Does anyone have a clue which formula I can use, or what I should change?

    Thanks for your help!
    Jurryt

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =IF(D4>60,$AB$4+(0.5*E4),IF(D4>40,$AB$4+(0.25*E4),$AB$4))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    01-03-2008
    Location
    North Carolina
    Posts
    5
    Hmmm.....What if you try something like this:

    =IF(AND(D4>40,D4<59),$AB4+(0.25*E4),IF(D4>60,$AB4+(0.5*E4),$A B4))

    Hope that helped.

    *Molnar*

  4. #4
    Registered User
    Join Date
    01-03-2008
    Posts
    5

    Cool

    Quote Originally Posted by oldchippy
    Try this,

    =IF(D4>60,$AB$4+(0.5*E4),IF(D4>40,$AB$4+(0.25*E4),$AB$4))
    Quote Originally Posted by molnar
    Hmmm.....What if you try something like this:

    =IF(AND(D4>40,D4<59),$AB4+(0.25*E4),IF(D4>60,$AB4+ (0.5*E4),$A B4))

    Hope that helped.

    *Molnar*
    Brilliant, both worked just fine! Thanks Oldchippy and Molnar, thanks a lot for your help!!!

  5. #5
    Registered User
    Join Date
    01-03-2008
    Posts
    5

    Cool

    Quote Originally Posted by oldchippy
    Try this,

    =IF(D4>60,$AB$4+(0.5*E4),IF(D4>40,$AB$4+(0.25*E4),$AB$4))
    Quote Originally Posted by molnar
    Hmmm.....What if you try something like this:

    =IF(AND(D4>40,D4<59),$AB4+(0.25*E4),IF(D4>60,$AB4+ (0.5*E4),$A B4))

    Hope that helped.

    *Molnar*
    Brilliant, both worked just fine! Thanks Oldchippy and Molnar, thanks a lot for your help!!!

  6. #6
    Registered User
    Join Date
    01-03-2008
    Posts
    5

    Cool

    Quote Originally Posted by oldchippy
    Try this,

    =IF(D4>60,$AB$4+(0.5*E4),IF(D4>40,$AB$4+(0.25*E4),$AB$4))
    Quote Originally Posted by molnar
    Hmmm.....What if you try something like this:

    =IF(AND(D4>40,D4<59),$AB4+(0.25*E4),IF(D4>60,$AB4+ (0.5*E4),$A B4))

    Hope that helped.

    *Molnar*
    Brilliant, both worked just fine! Thanks Oldchippy and Molnar, thanks a lot for your help!!!

+ 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