ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Logical Function (https://www.excelbanter.com/excel-worksheet-functions/10361-logical-function.html)

vnsrod2000

Logical Function
 
I want just one formula to calculate employee bonuses given the following
three scenarios:
1) If Gross Profit is under 250,000, no bonus
2) If GP is between 250,000 and 750,000, bonus is 3% of GP minus 250,000
3) If GP is 750,000 or more, bonus is 3% of total GP

In cell A1, I will be inputing the employees GP.
In cell A2, I want the bonus amount to be calculated.

So far, I have the following formulas which calculate scenarios 1/2 and 3
respectively, but I don't know how to combine them:
=IF(D29<250000,0,0.03*(D29-250000))
=IF(D29=750000,0.03*D29)

Thanks for your help!!

CLR

=IF(D29<250000,0,IF(D29<750000,0.03*(D29-250000),0.03*D29))


Vaya con Dios,
Chuck, CABGx3


"vnsrod2000" wrote in message
...
I want just one formula to calculate employee bonuses given the following
three scenarios:
1) If Gross Profit is under 250,000, no bonus
2) If GP is between 250,000 and 750,000, bonus is 3% of GP minus 250,000
3) If GP is 750,000 or more, bonus is 3% of total GP

In cell A1, I will be inputing the employees GP.
In cell A2, I want the bonus amount to be calculated.

So far, I have the following formulas which calculate scenarios 1/2 and 3
respectively, but I don't know how to combine them:
=IF(D29<250000,0,0.03*(D29-250000))
=IF(D29=750000,0.03*D29)

Thanks for your help!!




vnsrod2000

Works perfectly, thanks!

"CLR" wrote:

=IF(D29<250000,0,IF(D29<750000,0.03*(D29-250000),0.03*D29))


Vaya con Dios,
Chuck, CABGx3


"vnsrod2000" wrote in message
...
I want just one formula to calculate employee bonuses given the following
three scenarios:
1) If Gross Profit is under 250,000, no bonus
2) If GP is between 250,000 and 750,000, bonus is 3% of GP minus 250,000
3) If GP is 750,000 or more, bonus is 3% of total GP

In cell A1, I will be inputing the employees GP.
In cell A2, I want the bonus amount to be calculated.

So far, I have the following formulas which calculate scenarios 1/2 and 3
respectively, but I don't know how to combine them:
=IF(D29<250000,0,0.03*(D29-250000))
=IF(D29=750000,0.03*D29)

Thanks for your help!!






All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com