+ Reply to Thread
Results 1 to 10 of 10

Sheet Info From Cell For Data Validation

  1. #1
    Registered User
    Join Date
    05-11-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2016
    Posts
    6

    Sheet Info From Cell For Data Validation

    Hi chaps,

    I'm tearing my hair out trying to get this to work, and I fear I'm either missing something obvious, or it can't be done.

    I'm using data validation to return a drop down list:

    My source is:

    =Team7!$C$4:$C$27

    where Team7 is another sheet. I've entered this manually - and it works okay, but is there a way for a cell to tell the data validation what sheet to look at, i.e. the content of cell D2 is the sheet to look up... does that make sense?

    So in D2 is "Team6" which is calculated from somewhere else, so if it changes, so does the data validation above.

    Hopefully I'm making sense!

    Thanks
    Last edited by Kozinski; 05-12-2016 at 07:36 AM. Reason: Solved!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sheet Info From Cell For Data Validation

    As the source for the drop down list use:

    =INDIRECT(D2&"!C4:C27")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-11-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2016
    Posts
    6

    Re: Sheet Info From Cell For Data Validation

    That's the one - perfect! thank you

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sheet Info From Cell For Data Validation

    You're welcome. Thanks for the feedback!

  5. #5
    Registered User
    Join Date
    05-11-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2016
    Posts
    6

    Re: Sheet Info From Cell For Data Validation

    I spoke too soon! It works at first, but if D2 changes (as it will) it can't cope - simply doesn't show a drop down list.

  6. #6
    Registered User
    Join Date
    05-11-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2016
    Posts
    6

    Re: Sheet Info From Cell For Data Validation

    Ahhh think it's cause text in D2 has a space - "Team Seven" - is there a way to use this with a space, or will it have to be "TeamSeven"?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sheet Info From Cell For Data Validation

    Just need a minor tweak...

    =INDIRECT("'"&D2&"'!C4:C27")

    That may be hard to decipher with all those quotes. Here it is in "exploded view"...

    =INDIRECT( " ' " & D2 & " ' ! C4:C27 " )

  8. #8
    Registered User
    Join Date
    05-11-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2016
    Posts
    6

    Re: Sheet Info From Cell For Data Validation

    Thanks for the reply - appears to have the same issue though. When it's changed - it stops displaying drop down list

  9. #9
    Registered User
    Join Date
    05-11-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2016
    Posts
    6

    Re: Sheet Info From Cell For Data Validation

    Cancel that - had forgot to run a Macro! All good now!

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sheet Info From Cell For Data Validation

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy info from 1 sheet to another if data is in cell A, if not then use cell B
    By theparlourroom in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-09-2015, 12:01 AM
  2. [SOLVED] Sheet tab Renaming from Cell Value (cell using Data Validation Dropdown)
    By wedzmer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2015, 01:30 PM
  3. Autopopulate cell based on info selected in Data Validation list
    By mintymike in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2012, 12:42 AM
  4. Populating additional sheets with data from sheet 1 depending on info in cell
    By kd1950 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-01-2012, 09:42 PM
  5. [SOLVED] Write validation info to a Cell
    By minifreak in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2012, 10:54 AM
  6. Excel 2007 : Displaying Info With Data Validation
    By rallybabe in forum Excel General
    Replies: 1
    Last Post: 12-01-2011, 06:29 PM
  7. Relocating info using Data Validation
    By Mr. G. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2005, 12:06 PM

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