• 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.

IF Formula

Bear

Member
Hi guys

Would you teach me how to set the if formula under the following conditions:

If the selective range showed "AIP" OR "YES", then add 20%

For example
if there are 2nos "AIP", then the cell shall be 40%
if there are 2nos "AIP" and 1no "YES", then the cell shall be 60%
 

Attachments

  • Project Management.xlsx
    8.7 KB · Views: 7
There is no data in the ranges that you have used in your formula.

What does "2nos" mean? Add 20% or 60% to what?

Very confusing...
 
Last edited:
Hi, to all!

Could be too:
=0.2*SUMPRODUCT(N(B3:F3={"AIP";"YES"}))
Or:
=0.2*SUM(COUNTIF(B3:F3,{"AIP","YES"}))

If you only have three values (N/A, AIP and YES), and no have empty cells, could be too:
=0.2*COUNTIF(B3:F3,"<>N/A")

Blessings!
 
Hi, to all!

Could be too:
=0.2*SUMPRODUCT(N(B3:F3={"AIP";"YES"}))
Or:
=0.2*SUM(COUNTIF(B3:F3,{"AIP","YES"}))

If you only have three values (N/A, AIP and YES), and no have empty cells, could be too:
=0.2*COUNTIF(B3:F3,"<>N/A")

Blessings!
Thank you John, it works really well. Bravo!!
 
Back
Top