+ Reply to Thread
Results 1 to 8 of 8

Dynamic Validation List based on Criteria

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    Hertfordshire, England
    MS-Off Ver
    2010
    Posts
    14

    Smile Dynamic Validation List based on Criteria

    I'm newly registered to this forum, so forgive any ignorance on my part here. You guys have been fantastic so many times in the past with some sticky problems I've had, so I'm hoping you may be able to help me with this one.

    I have the following worksheets, for example. In reality I have about 150 workers, and a maximum of 50 locations. Some workers will only ever cover one location, some a dozen, say, and some all 50 locations. I considered creating separate lists for each location, with worker's name in them, and using a "switch list" technique, but this seemed far too inelegant, so I thought I post this thread before I proceed.

    Worksheet 1

    COL A COL B
    LOCATION Allocate To
    London Validation List Here
    London Validation List Here
    New York Validation List Here
    Paris Validation List Here
    Stockholm Validation List Here

    Worksheet 2

    COL A COL B COL C COL D
    WORKER LOCATION1 LOCATION2 LOCATION3
    Mike London New York Paris
    Nancy London Stockholm
    Alice Paris New York
    Greg London

    In the first worksheet in Column B, I'd like a dynamic validation list that will only show the names of the workers that cover the location that is shown each cell of Col A. The locations the workers cover may change, but rarely. The problem is, the data in Worksheet 1 will be copied in each week, although the variety of locations will be the same. I know I'll have to update Col B each week, but if I can minimize the effort, brilliant!

    If I can avoid any VB code that would be ideal.

    I really hope your collective genius can assist.
    Last edited by Steve Bowden-Jones; 10-01-2014 at 03:38 AM. Reason: Post has been solved. Prefix Changed to reflect this.

  2. #2
    Registered User
    Join Date
    04-07-2014
    Location
    Port Talbot, Wales
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Dynamic Validation List based on Criteria

    Please post a sample file
    Cobwebs, Alba Gu Brath (Scotland Forever)

  3. #3
    Registered User
    Join Date
    09-10-2014
    Location
    Hertfordshire, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Dynamic Validation List based on Criteria

    Hmmm, scourge of the Newbie? It's not letting me attach a file, I keep getting a looping error, and I can't find the Browse button.

    Great First Post for me Sorry.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Dynamic Validation List based on Criteria

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    09-10-2014
    Location
    Hertfordshire, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Dynamic Validation List based on Criteria

    Okay, this is getting embarrassing. I had no intention of this turning into a "How to get Around The Forum" in my first time out.

    Ford, thanks for the advice. That's precisely what I was doing (Manage Attachments is all I'm getting, I assume that's what you mean) and as soon as I hit that, it brings up the page, but also a "Message From Webpage" window which says "undefined!You do not have permission to perform this action. Please refresh the page and login before trying again"

    I am logged in, and I cannot get rid of the message without completely logging out.

  6. #6
    Registered User
    Join Date
    09-10-2014
    Location
    Hertfordshire, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Dynamic Validation List based on Criteria

    Apologies. It seems it was the browser settings imposed on us at work.

    I hope this has worked now and very simple, sample file attached.

    Steve
    Attached Files Attached Files

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Dynamic Validation List based on Criteria

    Check this file.

    Does it do the job?
    Last edited by FlameRetired; 09-30-2014 at 10:57 PM.

  8. #8
    Registered User
    Join Date
    09-10-2014
    Location
    Hertfordshire, England
    MS-Off Ver
    2010
    Posts
    14

    Re: Dynamic Validation List based on Criteria

    Perfect! Thank you so much. That's exactly what I was trying to achieve.

    I'd been trying again in the meantime, but my limited knowledge of how properly to scan all the rows was woeful.

    You've shown me the way, and very elegantly. You're a genius!!

    Steve

+ 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. validation for dynamic list with criteria
    By nikenis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-24-2013, 10:22 AM
  2. [SOLVED] Create Dynamic Data Validation List based upon Criteria
    By stubbsj in forum Excel General
    Replies: 6
    Last Post: 06-04-2012, 08:33 AM
  3. Replies: 0
    Last Post: 02-13-2012, 07:18 AM
  4. Replies: 3
    Last Post: 08-21-2011, 08:22 PM
  5. Dynamic validatation based on previous validation list
    By bujaman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2010, 07:21 AM

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