Hi Everyone!
Looking for help involving excel solver when creating lineups for DFS (Daily Fantasy Sports) purposes. I currently have everything set up correctly with lineups being generated no problem. The issue I have run into now is that excel does not know to only
pick up to 4 players max from each team. Depending on when I run the solver, I could have 4 teams or 16 teams to choose from.
How do I set up a constraint so solver can recognize and choose players accordingly? Below are 2 images to see what I am working with. The first is a snapshot of my excel file and the second is a snapshot of my constraints.
Any help would be greatly appreciated. Thanks!

