Team Selection Problem Solving with Data...Please help

sur

Board Regular
Joined
Jul 4, 2011
Messages
176
Hello Team,

Here is the Problem Statement, please help to resolve this:

Problem Statement:
We need to select the best team for EACH STATE
Given a set of player information, some selection criteria and the required number of players at each position as input,automatically mark whether a player is selected or not for his state team
The worksheet should automatically handle the following changes:
- Changes in team composition (Number of Batsman, Number of Bowlers and Number of All Rounders)
- Addition of more states in the dataset
- Changes in the data set (Batting Averages / Wickets and Wicketkeeper flag)


Selection Criteria:

- There has to be one wicketkeeper-batsman in the team. In case there are multiple candidate wicketkeepers in the state, the one with highest batting average is selected.


- Select the remaining number of required batsmen in a decreasing order of their batting averages.


- Select the required number of bowlers in the decreasing order of wickets/match.


- Select the allrounders based on the formula (Batting average + 5*wickets/match). The higher this value, the better the allrounder and needs to be chosen






<colgroup><col><col span="11"></colgroup><tbody>
</tbody>
IMP:
1) To get the selected players, you should write VBA macros which populate the value of isSelected
- If needed, you can add columns to the right of isSelected which would help you in the processing
2) The submitted solution should be generic so that it should work on changing the Player Info and the required team composition

<colgroup><col span="12"><col></colgroup><tbody>
</tbody>


Per Team Composition:

Batsman 4
Bowler 3
All Rounder 4
Player Statistics:


Player NameStatePositionBatting AverageWickets / MatchIsWicketKeeperIsSelected
P1MaharashtraBatsman3401
P2MaharashtraBatsman3221
P3MaharashtraBatsman3000
P4MaharashtraBatsman2410
P5MaharashtraBatsman5000
P6MaharashtraBatsman5000
P7MaharashtraBowler2230
P8MaharashtraBowler2120
P9MaharashtraBowler630
P10MaharashtraBowler1040
P11MaharashtraBowler1540
P12MaharashtraBowler530
P13MaharashtraBowler1420
P14MaharashtraBowler1940
P15MaharashtraAll Rounder3230
P16MaharashtraAll Rounder1320
P17MaharashtraAll Rounder2730
P18MaharashtraAll Rounder1420
P19MaharashtraAll Rounder4120
P20MaharashtraAll Rounder1530
P21KarnatakaBatsman2001
P22KarnatakaBatsman2101
P23KarnatakaBatsman2021
P24KarnatakaBatsman2100
P25KarnatakaBatsman3800
P26KarnatakaBatsman4500
P27KarnatakaBowler830
P28KarnatakaBowler2130
P29KarnatakaBowler2340
P30KarnatakaBowler2120
P31KarnatakaBowler1620
P32KarnatakaBowler940
P33KarnatakaBowler2330
P34KarnatakaBowler2330
P35KarnatakaAll Rounder1820
P36KarnatakaAll Rounder3020
P37KarnatakaAll Rounder1440
P38KarnatakaAll Rounder4120
P39KarnatakaAll Rounder2220
P40KarnatakaAll Rounder3430
P41KarnatakaBowler2530

<colgroup><col span="7"></colgroup><tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

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