Running average with calculated salary cap

gamma725

New Member
Joined
Mar 13, 2019
Messages
2
Hi there,
I have two columns of data.
The first column consists of salary and the second column consists of average points per game.
There are 147 rows of data.

I am trying to choose the top 6 BEST averages while keeping the salary of the 6 chosen to not exceed $50,000.
There may be times when the absolute best six averages are not chosen as the best six if the salary exceeds $50k.

Thanks!

sample data:
SalaryAvgPointsPerGame
1110098.44
930098.06
970096.06
900095.22
760094.94
1140094.75
1080093.75
750093.18
950092.62
800092.44
870088.56
1020088.25
730086.41
760085.61
790083.25
850083.08
1050082.38
840082.28
710082.06

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
One option, in C2 is =IF(SUM(A2:A7)<=50000,"50k or under","") copied down.

It shows "50k or under" in C11 as well as C15:C20.

So A11 and the 5 below are the 6 chosen. (the best group under 50k)



Another way of looking at it is put =A2/B2 in C2 and =RANK(D2,$C$2:$C$20) in D2, then filter by the bottom 6 results. This gives 6,9,11,14,15 and 20 for 45100. The best performers per Salary.


You could spend more on better players and have worse ones there, or go for a better average, or a mix. There's no real correct answer without more detail
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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