Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    Edmonton, Alberta
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Nested if formula (2003)

    Below is a formula that I've tried and not even sure if it should be an if function. Would someone steer me in the right direction for: Anything under 78% = 0, 78% - 80% = 40, 80%-84% =50, 84% - 88% = 60, 88% - 92%= 70 and >98% = 80
    This is the if statement I tried but it keeps coming up with 0. Thanks in advance. Robin
    =IF(C13<0.78,0,IF(C13>0.78<0.8,40,IF(C13>0.8<0.84, 50,IF(C13>0.84<0.88,60,IF(C13>0.88<0.92,70,IF(C13> 0.92<0.98,80,0))))))

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Nested if formula (2003)

    Hi Robin

    Try


    =IF(C13<0.78,0,IF(AND(C13>0.78,C13<0.8),40,IF(AND( C13>0.8,C13<0.84),50,IF(AND(C13>0.84,C13<0.88),60, IF(AND(C13>0.88,C13<0.92),70,IF(AND(C13>0.92,C13<0 .98),80,0))))))
    Jerry

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Nested if formula (2003)

    A condition such as C13>0.78<0.8 is not valid, and not necessary either. Try this instead:

    =IF(C13<0.78,0,IF(C13<0.8,40,IF(C13<0.84,50,IF(C13 <0.88,60,IF(C13<0.92,70,80)))))

    I would use a lookup table and a VLOOKUP formula. This is is much more flexible: you can easily change a boundary value or a return value. See the attached workbook.
    Attached Files Attached Files

  4. #4
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Nested if formula (2003)

    Hi Robin,

    What is meant to happen at 80%, 84% and 88% and between 92% and 98%? So far, you've got two apparent outcomes for 80%, 84% and 88% and none between 92% and 98%.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

Posting Permissions

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