Can anyone help with a formula or code that would automatically place individuals into their 1st, 2nd, or 3rd choice of program based on the following:
Please see the sample data below which is sorted by score and spans columns A-G and rows 1-40.
[TABLE="width: 942"]
<tbody>[TR]
[TD]Program[/TD]
[TD]Max[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AT[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CON[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COS[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CUL[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ENG[/TD]
[TD]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSM[/TD]
[TD]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LE[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SPB[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WEL[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]IT[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Score[/TD]
[TD]First Name:[/TD]
[TD]Middle Name:[/TD]
[TD]Last Name:[/TD]
[TD]1st Choice:[/TD]
[TD]2nd Choice:[/TD]
[TD]3rd Choice:[/TD]
[/TR]
[TR]
[TD]57.40[/TD]
[TD]First 1[/TD]
[TD]Middle 1[/TD]
[TD]Last 1[/TD]
[TD]SPB[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]55.93[/TD]
[TD]First 2[/TD]
[TD]Middle 2[/TD]
[TD]Last 2[/TD]
[TD]ENG[/TD]
[TD]LE[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]55.78[/TD]
[TD]First 3[/TD]
[TD]Middle 3[/TD]
[TD]Last 3[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]55.38[/TD]
[TD]First 4[/TD]
[TD]Middle 4[/TD]
[TD]Last 4[/TD]
[TD]IT[/TD]
[TD]SPB[/TD]
[TD]CUL[/TD]
[/TR]
[TR]
[TD]55.10[/TD]
[TD]First 5[/TD]
[TD]Middle 5[/TD]
[TD]Last 5[/TD]
[TD]ENG[/TD]
[TD]HSM[/TD]
[TD]LE[/TD]
[/TR]
[TR]
[TD]55.00[/TD]
[TD]First 6[/TD]
[TD]Middle 6[/TD]
[TD]Last 6[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]AT[/TD]
[/TR]
[TR]
[TD]54.98[/TD]
[TD]First 7[/TD]
[TD]Middle 7[/TD]
[TD]Last 7[/TD]
[TD]LE[/TD]
[TD]IT[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]54.88[/TD]
[TD]First 8[/TD]
[TD]Middle 8[/TD]
[TD]Last 8[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]54.85[/TD]
[TD]First 9[/TD]
[TD]Middle 9[/TD]
[TD]Last 9[/TD]
[TD]HSM[/TD]
[TD]WEL[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]54.85[/TD]
[TD]First 10[/TD]
[TD]Middle 10[/TD]
[TD]Last 10[/TD]
[TD]SPB[/TD]
[TD]ENG[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]54.80[/TD]
[TD]First 11[/TD]
[TD]Middle 11[/TD]
[TD]Last 11[/TD]
[TD]IT[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]54.43[/TD]
[TD]First 12[/TD]
[TD]Middle 12[/TD]
[TD]Last 12[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]LE[/TD]
[/TR]
[TR]
[TD]53.90[/TD]
[TD]First 13[/TD]
[TD]Middle 13[/TD]
[TD]Last 13[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]53.80[/TD]
[TD]First 14[/TD]
[TD]Middle 14[/TD]
[TD]Last 14[/TD]
[TD]IT[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]53.80[/TD]
[TD]First 15[/TD]
[TD]Middle 15[/TD]
[TD]Last 15[/TD]
[TD]SPB[/TD]
[TD]CUL[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]53.68[/TD]
[TD]First 16[/TD]
[TD]Middle 16[/TD]
[TD]Last 16[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]53.33[/TD]
[TD]First 17[/TD]
[TD]Middle 17[/TD]
[TD]Last 17[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]CON[/TD]
[/TR]
[TR]
[TD]53.13[/TD]
[TD]First 18[/TD]
[TD]Middle 18[/TD]
[TD]Last 18[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]53.03[/TD]
[TD]First 19[/TD]
[TD]Middle 19[/TD]
[TD]Last 19[/TD]
[TD]IT[/TD]
[TD]ENG[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]53.00[/TD]
[TD]First 20[/TD]
[TD]Middle 20[/TD]
[TD]Last 20[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]AT[/TD]
[/TR]
[TR]
[TD]53.00[/TD]
[TD]First 21[/TD]
[TD]Middle 21[/TD]
[TD]Last 21[/TD]
[TD]ENG[/TD]
[TD]LE[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]52.73[/TD]
[TD]First 22[/TD]
[TD]Middle 22[/TD]
[TD]Last 22[/TD]
[TD]HSM[/TD]
[TD]LE[/TD]
[TD]CUL[/TD]
[/TR]
[TR]
[TD]52.55[/TD]
[TD]First 23[/TD]
[TD]Middle 23[/TD]
[TD]Last 23[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]52.53[/TD]
[TD]First 24[/TD]
[TD]Middle 24[/TD]
[TD]Last 24[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]LE[/TD]
[/TR]
[TR]
[TD]52.30[/TD]
[TD]First 25[/TD]
[TD]Middle 25[/TD]
[TD]Last 25[/TD]
[TD]HSM[/TD]
[TD]SPB[/TD]
[TD]COS[/TD]
[/TR]
[TR]
[TD]52.20[/TD]
[TD]First 26[/TD]
[TD]Middle 26[/TD]
[TD]Last 26[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]51.88[/TD]
[TD]First 27[/TD]
[TD]Middle 27[/TD]
[TD]Last 27[/TD]
[TD]LE[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
</tbody>[/TABLE]
- The individual with the highest score determines the priority of placement
- There are a maximum number of placements for each program
- Placement should be done in rounds. All individuals are placed in their first choice based on their score until the programs are full. Anyone who did not get into their 1st choice will be placed into their 2nd choice based on score again. If their score is higher than someone who was placed in the first round they can bump and then that individual who was bumped 2nd choice will need to be evaluated. This process will occur a third time for those who have not been placed 3rd choice.
Please see the sample data below which is sorted by score and spans columns A-G and rows 1-40.
[TABLE="width: 942"]
<tbody>[TR]
[TD]Program[/TD]
[TD]Max[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AT[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CON[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COS[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CUL[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ENG[/TD]
[TD]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSM[/TD]
[TD]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LE[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SPB[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WEL[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]IT[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Score[/TD]
[TD]First Name:[/TD]
[TD]Middle Name:[/TD]
[TD]Last Name:[/TD]
[TD]1st Choice:[/TD]
[TD]2nd Choice:[/TD]
[TD]3rd Choice:[/TD]
[/TR]
[TR]
[TD]57.40[/TD]
[TD]First 1[/TD]
[TD]Middle 1[/TD]
[TD]Last 1[/TD]
[TD]SPB[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]55.93[/TD]
[TD]First 2[/TD]
[TD]Middle 2[/TD]
[TD]Last 2[/TD]
[TD]ENG[/TD]
[TD]LE[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]55.78[/TD]
[TD]First 3[/TD]
[TD]Middle 3[/TD]
[TD]Last 3[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]55.38[/TD]
[TD]First 4[/TD]
[TD]Middle 4[/TD]
[TD]Last 4[/TD]
[TD]IT[/TD]
[TD]SPB[/TD]
[TD]CUL[/TD]
[/TR]
[TR]
[TD]55.10[/TD]
[TD]First 5[/TD]
[TD]Middle 5[/TD]
[TD]Last 5[/TD]
[TD]ENG[/TD]
[TD]HSM[/TD]
[TD]LE[/TD]
[/TR]
[TR]
[TD]55.00[/TD]
[TD]First 6[/TD]
[TD]Middle 6[/TD]
[TD]Last 6[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]AT[/TD]
[/TR]
[TR]
[TD]54.98[/TD]
[TD]First 7[/TD]
[TD]Middle 7[/TD]
[TD]Last 7[/TD]
[TD]LE[/TD]
[TD]IT[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]54.88[/TD]
[TD]First 8[/TD]
[TD]Middle 8[/TD]
[TD]Last 8[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]54.85[/TD]
[TD]First 9[/TD]
[TD]Middle 9[/TD]
[TD]Last 9[/TD]
[TD]HSM[/TD]
[TD]WEL[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]54.85[/TD]
[TD]First 10[/TD]
[TD]Middle 10[/TD]
[TD]Last 10[/TD]
[TD]SPB[/TD]
[TD]ENG[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]54.80[/TD]
[TD]First 11[/TD]
[TD]Middle 11[/TD]
[TD]Last 11[/TD]
[TD]IT[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]54.43[/TD]
[TD]First 12[/TD]
[TD]Middle 12[/TD]
[TD]Last 12[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]LE[/TD]
[/TR]
[TR]
[TD]53.90[/TD]
[TD]First 13[/TD]
[TD]Middle 13[/TD]
[TD]Last 13[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]53.80[/TD]
[TD]First 14[/TD]
[TD]Middle 14[/TD]
[TD]Last 14[/TD]
[TD]IT[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]53.80[/TD]
[TD]First 15[/TD]
[TD]Middle 15[/TD]
[TD]Last 15[/TD]
[TD]SPB[/TD]
[TD]CUL[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]53.68[/TD]
[TD]First 16[/TD]
[TD]Middle 16[/TD]
[TD]Last 16[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]53.33[/TD]
[TD]First 17[/TD]
[TD]Middle 17[/TD]
[TD]Last 17[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]CON[/TD]
[/TR]
[TR]
[TD]53.13[/TD]
[TD]First 18[/TD]
[TD]Middle 18[/TD]
[TD]Last 18[/TD]
[TD]HSM[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[/TR]
[TR]
[TD]53.03[/TD]
[TD]First 19[/TD]
[TD]Middle 19[/TD]
[TD]Last 19[/TD]
[TD]IT[/TD]
[TD]ENG[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]53.00[/TD]
[TD]First 20[/TD]
[TD]Middle 20[/TD]
[TD]Last 20[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]AT[/TD]
[/TR]
[TR]
[TD]53.00[/TD]
[TD]First 21[/TD]
[TD]Middle 21[/TD]
[TD]Last 21[/TD]
[TD]ENG[/TD]
[TD]LE[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]52.73[/TD]
[TD]First 22[/TD]
[TD]Middle 22[/TD]
[TD]Last 22[/TD]
[TD]HSM[/TD]
[TD]LE[/TD]
[TD]CUL[/TD]
[/TR]
[TR]
[TD]52.55[/TD]
[TD]First 23[/TD]
[TD]Middle 23[/TD]
[TD]Last 23[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]HSM[/TD]
[/TR]
[TR]
[TD]52.53[/TD]
[TD]First 24[/TD]
[TD]Middle 24[/TD]
[TD]Last 24[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[TD]LE[/TD]
[/TR]
[TR]
[TD]52.30[/TD]
[TD]First 25[/TD]
[TD]Middle 25[/TD]
[TD]Last 25[/TD]
[TD]HSM[/TD]
[TD]SPB[/TD]
[TD]COS[/TD]
[/TR]
[TR]
[TD]52.20[/TD]
[TD]First 26[/TD]
[TD]Middle 26[/TD]
[TD]Last 26[/TD]
[TD]ENG[/TD]
[TD]SPB[/TD]
[TD]IT[/TD]
[/TR]
[TR]
[TD]51.88[/TD]
[TD]First 27[/TD]
[TD]Middle 27[/TD]
[TD]Last 27[/TD]
[TD]LE[/TD]
[TD]ENG[/TD]
[TD]IT[/TD]
[/TR]
</tbody>[/TABLE]