Forum Discussion

wmfw2360's avatar
wmfw2360
Copper Contributor
Aug 26, 2024

Calculating bonus with multiple conditions

I need help with calculating bonus based on the below :-

 

If user reaches 120% in one category except E, user will get 10% bonus in another category which reached 60%-69%

 

The bonus column is my desired result.

 

UserCategoryAchievementBonus
JohnA65%10%
JohnB80%0
JohnC120%0
JohnD68%10%
JohnE120%0
JackA68%10%
JackB54%0
JackC130%0%
JackD65%10%
JackE120%0%
  • XXplore's avatar
    XXplore
    Brass Contributor
    =(C2>=0.6)*(C2<=0.69)*(COUNTIFS(A:A,A2,B:B,"<>E",C:C,">=1.2")>=1)*10%
    • wmfw2360's avatar
      wmfw2360
      Copper Contributor
      Thanks ! Could you explain the formula ? why do we use *
      • XXplore's avatar
        XXplore
        Brass Contributor

        wmfw2360 

         

        The formulas in (...) returns True=1 or False=0 

         (Condition_1)*(Condition_2)*...*(Condition_n)*(Result)

        It returns 1*1*...*Result=Result when all conditions are Ture, otherwise 0;

        Similar to

        If ( AND(Condition_1, Condition_2, ..., Condition_n), Result_If_All_True )

         

Resources