INT Function Usage

james.kilgore

New Member
Joined
May 12, 2011
Messages
1
I'm currently using the following function to calculate the below:
=IF(T4>=S4,20+INT((T4/S4-1)*100)*5,0)

Salesmen will earn 20 points when they EAD 100% of their PJ/CCT/SOWT target. Salesmen will then earn an additional 5 points for every PJ/CCT/SOWT to EAD above 100% of their target. Flights will earn 0 points if they fail to meet 100% of PJ/CCT/SOWT target.

However, it is calculating the percentage over 100%. I need it to give 20 points for reaching the target and then give 5 points for each one above the set target.

For instance, a salesman has a goal of 10 and gets 12. They would get 20 points for reaching the target and then receive 10 more points for the extra two for a total of 30 points.

DESCRIPTION OF PROBLEM: it is calculating the points based on the percentage. What I need it to do is evaluate column S compare to column R. If S is equal to the target then award 20 points. For every integer over the target award 5 additional points.

Thanks!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You are using incorrect logic, given the example you provide. Try this:

Code:
=IF(actual >= goal, 20 + 5 * (actual - goal), 0)

If the salesperson achieves their target they get 20 plus 5 times however much they may have exceeded their target by. Otherwise, they get zero.

There is no reason to calculate a percentage here.
 
Upvote 0
Hotpepper, I don't think that is quite correct given the requirements.

Flights will earn 0 points if they fail to meet 100% of PJ/CCT/SOWT target.

Your formula would return 15 points given a goal of 10 and an actual of 9. However, since salesperson did not reach its goal, it should receive 0 points.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,711
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top