+ Reply to Thread
Results 1 to 7 of 7

Data Validation Issue

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Ames, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    50

    Data Validation Issue

    I recently had a forum user help me with the attached file regarding data validation and a macro that allows me to pick from a list of teams and then it displays their roster in the validation boxes below. It works great for the first 26 teams I have listed, but after that, it no longer keeps the rosters with the teams. I was hoping someone could find the small glitch that will allow this process to work for all teams listed.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Issue

    1) on the PlayersSheet, create a named range (CTRL-F3) called Teams with this formula for the RefersTo:
    =OFFSET(PlaysheetsBasketball12!$A$1, , , 1, COUNTA(PlaysheetsBasketball12!$1:$1))

    This creates a self-expanding list of sheetnames for use on the other sheet.

    2) Change the Data Validation in F6 to:
    =Teams

    3) Now use this formula for Data Validation in J9:
    =OFFSET(PlaysheetsBasketball12!$A$1, 1, MATCH($F$6, Teams, 0)-1, COUNTA(OFFSET(PlaysheetsBasketball12!$A$1, , MATCH($F$6, Teams, 0)-1, 50, 1))-1, 1)

    4) Copy that cell down the first section.

    5) For the next section, just change the $F$6 to $F$27
    ...etc


    Now you don't need all that other stuff on the right. Also, this will expand itself as you add columns to the PlayerSheet
    Last edited by JBeaucaire; 07-03-2012 at 02:20 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-14-2012
    Location
    Ames, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Data Validation Issue

    JBeaucaire,
    Thanks for your help. This looks to solve most of the problem. However, when I copy the data validation down into the rest of the cells, as I go down the cells, I lose 1 name per cell that I go down. So the last cell spot doesn't display any names (the first displays 10, next cell displays 9, next displays 8, etc.). I need all the names to show up in each of those cells' list. What adjustment needs to be made for that?
    THANKS

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Issue

    I fixed the formula in step #3. Try it again.

  5. #5
    Registered User
    Join Date
    06-14-2012
    Location
    Ames, Iowa
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Data Validation Issue

    Perfect. I appreciate you help!

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Issue

    If that takes care of your need, please select Thread Tools from menu above and set this topic to SOLVED.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation Issue

    duplicate... deleted.

+ 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