Search code examples
google-sheets-formulacalculated-columns

how to find the percentage between 2 numbers with 2 conditions?


I'm having trouble finding the formula for percentages I have to calculate the employee bonus e.g. on April 8, 2022, we have 90.13% of the standard developed, the same on 04/04/2022 is 108.54% where 90% is equal to 3.75% of the bonus and a maximum of 120% is equal to 15% of the bonus below 90% of the worked norm, the employee will not receive a bonus

I need to find a formula that will calculate how much the employee's bonus will be

https://docs.google.com/spreadsheets/d/1xtf9ZUecahZTnB6dNKQAKMO7e1qTmv6qbNHsQ0wWpI0/edit#gid=51882774

89.99% = 0%

90% = 3.75%

90.13% = ???

108.54% = ???

120% = 15%

130% = 15%

140% = 15%

150% = 15%

Anyone can help me with this ??

Image preview


Solution

  • My browser won't view the image for some reason, so in this answer I'm assuming that the 'Percentage of standard developed' is column A, please change cell references to suit.

    in Cell B2 (or a different column) enter the formula;

    =IFS(A2<90%, 0, A2>120%, 15%, TRUE, A2*37.5%-30%)