# Thread: Choosing 2 out of 3 (Excel)

1. ## Choosing 2 out of 3 (Excel)

Sports freak here....I have rosters consisting of 2 QBs, 3 RBs, 3 WRs, 2 TEs, 2 Ks, and 2 STs. When we submit a lineup, I'm trying to "automate" the process by creating a list where after you have selected your starters, the following list composes itself of the following: 1QB, 2 RBs, 2 WRs, 1 TE, 1K, & 1 ST. I have the "1" positions figured out (simple IF statement). But how do I get the RBs and WRs to be limited to just 2? I keep trying to manipulate the IF statement, but run into a circular reference.

2. ## Re: Choosing 2 out of 3 (Excel)

Could you post a sample workbook that shows what you have and what you want?

3. ## Re: Choosing 2 out of 3 (Excel)

Here you go...

4. ## Re: Choosing 2 out of 3 (Excel)

Sorry, I don't understand your worksheet or what you want to do. Could you help with some explanation?

5. ## Re: Choosing 2 out of 3 (Excel)

The 14 players that make up a roster are the top grouping. You must select a "lineup" from the roster. This is denoted by placing an "x" in the Lineup? column. The lineup must consist of 1 qb, 2 rb, 2 wr, 1 te, 1 k, and 1 st.

What I'm trying to do is make the last group (bottom) represent only the lineup that has been selected (w/o empty cells). However, if you notice, the roster consists of 3 possible rb and 3 possible te to choose from. Therefore, a simple if function (i.e., IF(QB1="",QB2,QB1) will not represent all of the possiblities of choosing a RB (RB1,RB2; RB1, RB3; RB2, RB3).

It could be as simple as copy the middle group down, delete the empty cells, and go from there. But I'm trying to automate this as much as humanly possible.

6. ## Re: Choosing 2 out of 3 (Excel)

Does the attached do what you want?

7. ## Re: Choosing 2 out of 3 (Excel)

It looks great, except that if you choose RB1 & RB3, the final lineup shows RB1 & RB2. The same happens with the WRs. The other positions work perfectly!

I appreciate what you have done. Do you think you can fix that issue?

8. ## Re: Choosing 2 out of 3 (Excel)

I missed that combination. Try the attached.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•