'google sheets quota and bonus calculation IFs statement
I am using Google Sheets to track my daily work and bonus calculation for projects.
I have a script that tracks my input log and adds it to an output cell totaling my monthly projects completed for my team. My quota for every month is 30 projects. For every one project over the maximum, I receive an additional 45$.
=IFS(B8<=29,"0",B8<=30,"MET YOUR QUOTA",B8<=30+1,45*1,B8<=30+2,45*2,B8<=30+3,45*3,B8<=30+4,45*4,B8<=30+5,45*5,B8<=30+6,45*6,B8<=30+7,45*7,B8<=30+8,45*8,B8<=30+9,45*9,B8<=30+10,45*10,B8<=30+11,45*11,B8<=30+12,45*12,B8<=30+13,45*13,B8<=30+14,45*14,B8<=30+15,45*15,B8<=30+16,45*16,B8<=30+17,45*17,B8<=30+18,45*18,B8<=30+19,45*19,B8<=30+20,45*20,B8<=30+21,45*21,B8<=30+22,45*22,B8<=30+23,45*23,B8<=30+24,45*24,B8<=30+25,45*25,B8<=30+26,45*26,B8<=30+27,45*27,B8<=30+28,45*28,B8<=30+29,45*29,B8<=30+30,45*30,B8<=30+31,45*31,B8<=30+32,45*32,B8<=30+33,45*33,B8<=30+34,45*34,B8<=30+35,45*35,B8<=30+36,45*36,B8<=30+70,45*70)
For the sake of understanding the script: my quota total is logged in cell B8 and if that cell is less than or equal to 30 my bonus is equal to zero, after which for every increase greater than or equal to 30+X, then write 45*X.
I want to try and simplify this statement but I am not sure how. I could just keep adding on to the script but I know there is a simpler cleaner method.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
