macro

theboyscout

New Member
Joined
Nov 29, 2012
Messages
26
[TABLE="width: 389"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Title[/TD]
[TD]Salary[/TD]
[TD]max sales[/TD]
[TD]min sales[/TD]
[/TR]
[TR]
[TD]Archie Moody[/TD]
[TD]TI[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]327[/TD]
[TD="align: right"]96[/TD]
[/TR]
[TR]
[TD]Dixie Daniels[/TD]
[TD]T3[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]170[/TD]
[TD="align: right"]109[/TD]
[/TR]
[TR]
[TD]Jennifer Palmer[/TD]
[TD]T5[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]320[/TD]
[TD="align: right"]317[/TD]
[/TR]
[TR]
[TD]Camille Ortega[/TD]
[TD]T3[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]257[/TD]
[TD="align: right"]213[/TD]
[/TR]
[TR]
[TD]Arlene Carr[/TD]
[TD]T2[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]289[/TD]
[TD="align: right"]240[/TD]
[/TR]
[TR]
[TD]Neil Mills[/TD]
[TD]T1[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]352[/TD]
[TD="align: right"]116[/TD]
[/TR]
[TR]
[TD]Terri Bridges[/TD]
[TD]T4[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]172[/TD]
[TD="align: right"]110[/TD]
[/TR]
[TR]
[TD]Terrell Cortez[/TD]
[TD]T1[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]292[/TD]
[TD="align: right"]105[/TD]
[/TR]
[TR]
[TD]Pamela Cole[/TD]
[TD]T2[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]262[/TD]
[TD="align: right"]122[/TD]
[/TR]
[TR]
[TD]Charlie Newman[/TD]
[TD]T5[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]170[/TD]
[TD="align: right"]125[/TD]
[/TR]
</tbody>[/TABLE]

Above is a list of employees that I would like a macro that would select the best employee from the list based on the following criteria:
I want the employees that combine to make the most sales, only one employee can be selected from each title and the combined salaries of all 5 titles cannot exceed 100
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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