• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Multiple IF's

Thomas Kuriakose

Active Member
Respected Sirs,

Kindly find attached a workbook, where I have used multiple ifs to arrive at the percentage column F, but I am not able to get the result for 100.

Conditions:
1. Column E>0 and <=2 - Result should be 20
2. Column E>2 and <=3 - Result should be 40
3. Column E>3 and <=10 - Result should be 60
4. Column E>10 and Column B>0 - Result should be 80
5. Column E>10 and Column B=0 or blank - Result should be 100

Kindly let me know the error in the multiple if used.

Thank you very much,

with regards,
thomas
 

Attachments

  • Nested If last Value.xlsx
    17.1 KB · Views: 7
Try,

1] In "Unit" E2, formula copy down :

=IF(D2>0,C2/D2,0)

2] In "%" F2, formula copy down :

=IF(B2=0,100,IF(E2<=2,20,IF(E2<=3,40,IF(E2<=10,60,IF(E2>10,80)))))

2a] Alternative formula for "%" G2, formula copy down :

=IF(B2=0,100,SUM((E2>={0;2.01;3.01;10.01})*20))

Regards
Bosco
 

Attachments

  • Nested If last Value.xlsx
    11.7 KB · Views: 5
Back
Top