+ Reply to Thread
Results 1 to 11 of 11

Using Drop-Down list with offset

  1. #1
    Registered User
    Join Date
    11-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    8

    Using Drop-Down list with offset

    Hey to you all,

    Thank you in advance and I appreciate the help. I am attempting to create an NBA model that pins one team against another. For the opponent, I am using a drop down list that has the 29 other teams listed and I want to be able to pull the rosters of each respective team once I choose that team on the drop down list (the rosters are listed on another worksheet in the workbook). I have been able to execute the roster change by using numerical values and the offset function, but I want to be able to use the drop down list instead of having the user change the number and then see the roster change. I have attached my model for better understanding, as I know I am probably confusing. Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Using Drop-Down list with offset

    like this?
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Using Drop-Down list with offset

    Messed up on the range. The correct formula should be

    =INDEX('NBA '!$A$1:$AD$16,ROW()-16,MATCH(Opponent,'NBA '!$A$1:$AD$1,0))

  4. #4
    Registered User
    Join Date
    11-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Using Drop-Down list with offset

    you are awesome thank you so much!!!!!! i know this next question may be one with a great amount of difficulty and may not even be possible, but is there a way to match the color scheme from the NBA tab to change dynamically when different teams are chosen from the drop down list?

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Using Drop-Down list with offset

    You need VBA for that
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Using Drop-Down list with offset

    thank you again. is there anyway the border colors match the defined ones in the next worksheet? i'm not too familiar with VBA so it makes it kind of useless for me to tinker around in there and mess what you defined. another issue i have is that when i have a team with 14 players instead of 15, the drop down data validation list adjacent to the now blank 15th cell still shows up. is there a way to conditional format that cell (which is b35 in the copy of the model i attached). thank you again in advance, i really appreciate it.
    Attached Files Attached Files
    Last edited by rzacharia21; 11-21-2012 at 03:50 PM.

  7. #7
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Using Drop-Down list with offset

    You just need to extend your formula. I fixed the other way.
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Using Drop-Down list with offset

    What happen to Chicago bulls?

  9. #9
    Registered User
    Join Date
    11-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Using Drop-Down list with offset

    what do you mean what happened to the chicago bulls?

  10. #10
    Registered User
    Join Date
    11-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Using Drop-Down list with offset

    the most recent model I attached is the one that is correct. I just want to figure out how to use VBA to extract the border colors from the team name cells in the NBA tab and how to somehow blank the last drop down option (in B35) when there is nothing in A35.

  11. #11
    Registered User
    Join Date
    11-20-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Using Drop-Down list with offset

    does anyone know how to format row 35 so that if A35 is blank, the data validation entry in B35 will also be blank? also, does anyone know to use VBA so that the border color for cell A19 on the Chicago Bulls tab follows the border color of the respective team listed on the NBA tab? Thank you very much.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1