Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    Sep 2004
    Location
    Indiana, Venezuela
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Choosing 2 out of 3 (Excel)

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

  3. #3
    New Lounger
    Join Date
    Sep 2004
    Location
    Indiana, Venezuela
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Choosing 2 out of 3 (Excel)

    Here you go...

  4. #4
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?
    Legare Coleman

  5. #5
    New Lounger
    Join Date
    Sep 2004
    Location
    Indiana, Venezuela
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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. #6
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Choosing 2 out of 3 (Excel)

    Does the attached do what you want?
    Legare Coleman

  7. #7
    New Lounger
    Join Date
    Sep 2004
    Location
    Indiana, Venezuela
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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. #8
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Choosing 2 out of 3 (Excel)

    I missed that combination. Try the attached.
    Legare Coleman

Posting Permissions

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