+ Reply to Thread
Results 1 to 30 of 30

Data Validation List "Source" field Syntax Trouble

  1. #1
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Data Validation List "Source" field Syntax Trouble

    Help! I've been failing all day to create a "Documents" drop-down Data Validation List where the list changes based on whichever value a user first selected from a "Client Name" drop-down list in another cell.

    My users select the Client Name from a named list that's familiar to them day-to-day, so its values have spaces (i.e.: The McGregor Corporation, etc.), but because Excel names for named ranges do not allow spaces, I have to use a 2 column table for changing each client's CommonNames to NoSpacesNames. I've created each client's unique Documents range with the NoSpacesNames as the name (McGregor, etc.). So I should be good to go...or so I thought at first.

    Problem is, I think, what the Data Validation List "Source" field allows as valid syntax. I've tried both an INDEX and VLOOKUP formula in the Source field to get it to present the user with the correct Document list. Both technically WORK as correct Source field entries, but when I click the Documents drop down, it just presents me with the NoSpacesName, not the named range I was hoping for. I tried putting a "Value" function in front of the INDEX and VLOOKUP, but that gave me formula errors.

    Here's the Vlookup Formula I'm using (where A2 is the first validation list choice): =VLOOKUP(A$2,FormsMatrix[[CommonNames]:[NoSpacesNames]],2,FALSE)

    As always, the answer is probably staring me in the face, but I'm too frustrated at this point to see it...

    Thanks!

  2. #2
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    One more thing: Every client's NoSpaceNames list of document names is made up of the same document types, only some clients have all documents, others have different selections of the complete set. So I anticipate when this works that I'll see spaces in my drop downs where not-applicable document types would have gone. How do I get rid of the blanks to present cleaner, shorter lists? I clicked "Ignore blanks" on the setup window, but it doesn't fix that apparently...

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    Without any example file (xlsx not a picture) is hard to say something, so...

    Read here Create Dependent Drop Down Lists

  4. #4
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    Yes, I was afraid of that. To post the .xlsx document I'll have to first replace HIPAA-sensitive data with dummy data. Was hoping I had explained well and simply enough someone would be able to see it in their mind. Oh well. I'll try to post it in a bit. Thank you.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    Instruction

    Attach a sample workbook. (Not a picture!)
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook

    if needed to show the process you're trying to complete or automate.
    Make sure your desired results are shown, mock them up manually if necessary.
    Remember to desensitize the data.
    Note:
    Please do not attach password protected workbooks/worksheets
    Please do not attach file(s) from exterior servers
    Please do not attach file(s) with enabled any Workbook Open/Autorun macros!

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  6. #6
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Data Validation List "Source" field Syntax Trouble

    Hi,

    see attached
    Attached Files Attached Files

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    See attachment.
    I changed your lists (see Name Manager)
    You cannot use spaces, special characters (eg. & so I changed to and)in names, and you should start name from the letter or underscore (numbers are prohibited)
    I changed your table to Excel Table and now you can add more records and your list will update automatically.
    Would be fine if you split table to single tables with empty columns between to remove empty rows in DV (see second attachment)
    Is that what you want?
    Attached Files Attached Files
    Last edited by sandy666; 01-19-2017 at 09:14 PM. Reason: second attachment added

  8. #8
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    Thank you all for adding to this thread even tho I didn't have a sample of my dilemma to upload. I do now and it's attached. Very detailed and likely "TMI" as they say. I will study the documents you attached earlier.

    EDIT: Updated my sample document with better notes. Formulas, layout and named ranges are still the same.
    Attached Files Attached Files
    Last edited by Quinn.Farley; 01-24-2017 at 04:26 PM.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    I made mistake before with attachment. Not attachment from right person
    I will look at yours, Quinn.Farley

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    1. Change your e.g. UNIQUE_OIS with formula to NAME (UNIQUE_OIS) of range.
    Like I said in previous post you can see dynamic ranges if you will use Excel Table and NAME of range
    I did it and it works well. Much easier
    Try yourself

  11. #11
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    Fantastic!!!! For someone with a slightly demonic username, you are an angel!

    I'll let you know how it goes very soon...

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,872

    Re: Data Validation List "Source" field Syntax Trouble

    Solved by Sandy!!!
    Last edited by JohnTopley; 01-24-2017 at 04:37 PM.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    Here is example (for now or future) how to use compact lists, names and indirect function
    Of course with dynamic list you can use Excel Table (INSERT==>>Table)
    Attached Files Attached Files
    Last edited by sandy666; 01-24-2017 at 04:44 PM. Reason: typo

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    @JohnTopley

    LOL John, thank you

  15. #15
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    Thank you very much for assisting me with this, but I'm not quite there yet.

    In trying to make my problem simpler to present, I left out something that may or may not affect the solution. The DataAndNamedRanges sheet's F2:L12 array isn't static values -it's dependent to a master 'owned' and updated separately by our Client Services group. If Kevlar Defense Industries (KDI) starts using a "Rates" form and when CS updates the master, my sheet updates and (hopefully) the drop down lists. How would putting that array into a table affect the "UNIQUE_xxxxx" Named Ranges? Are you meaning to change the UNIQUE ranges into a table? If so, what happens to the formula I'm currently using in the "Refers to" field that de-dupes the ranges above?

    In my sample document, the forms lists is edited down significantly. In the actual document, there are up to 50 forms, so de-duping for the drop down list is essential.
    Last edited by Quinn.Farley; 01-24-2017 at 04:51 PM.

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    I'll try
    INPUT sheet
    1. Cell A3...: Full Client Name is a main list(s)
    2. Cell B3...: dependent list from A3 (INDIRECT(A3)
    3. Cell C3...: dependent list from B3 (INDIRECT(B3)
    4. Cell D3...: dependent list of ??? (the same like above INDIRECT(B3) ?) (d'ya want select two different docs from the same list ?)
    (for clarity without headers)
    and that is all what you want on input sheet?
    Last edited by sandy666; 01-24-2017 at 05:12 PM.

  17. #17
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    INPUT sheet
    1. Cell A3...: Full Client Name is a main list(s) Correct. Currently, I have that as a Named Range, but could make it into a dynamic table with no real change here.
    2. Cell B3...: dependent list from A3 (INDIRECT(A3) Though it's not a list (I included it only to visualize steps taken to get to the drop downs), you are correct that it's dependent on A3. I use a vlookup in my example, but for the actual document I use index/match because our client list isn't presented alphabetically, it presents clients by "most active" status)
    3. Cell C3...: dependent list from B3 (INDIRECT(B3) All drop down lists in column C, D, and beyond (actual document has the same drop downs through Column M and all dependent on the values in B.)
    4. Cell D3...: dependent list of ??? (the same like above INDIRECT(B3) ?) See above.

  18. #18
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    For me, my problem all boils down to this: Why can't a Data Validation list "Source" formula use an formula like "=INDIRECT(B3)" where B3's value is the name of a dynamic, named range (say, "UNIQUE_OIS")? If I use the formula "=INDIRECT(UNIQUE_OIS)", it works just fine.

    For the longest time, I thought it was a simple syntax issue in the "Source" formula, but nothing has worked.

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    It will take a little time
    Be patient

  20. #20
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    There's absolutely no expectation on my end. I'm already so grateful for the attention you've given me. Thank you.

  21. #21
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,872

    Re: Data Validation List "Source" field Syntax Trouble

    See attached:

    If this solves your problem, I'll fill in the blanks i.e explain what I have done..
    Attached Files Attached Files

  22. #22
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    Something like that?
    Attached Files Attached Files

  23. #23
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    Sandy,

    I see what you did there on the Quinn.Farley dependent lists file. You pre-populated all drop down fields with the "---SELECT FORM---" value so when selecting the drop down it went to that value first. I like doing that because if when there are blank values in the named range, it doesn't default to that first. I took it further: After changing all drop down forms field cells to white, I applied a Conditional Format rule for them all to use black font color when the cell's value wasn't "---SELECT FORM---". Even applied a light cell fill color to further the effect. Works great! Thank you!

    However, your solution also rigidly defines the range of each client's unique documents lists. That's the part I'm required to keep dynamic since they change regularly. And that goes back to the heart of the problem -because it's required to be a dynamic named range, I'm having the problem getting Indirect to refer to it.

  24. #24
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    Sandy,

    I see what you did there on the Quinn.Farley dependent lists file. You pre-populated all drop down fields with the "---SELECT FORM---" value so when selecting the drop down it went to that value first. I like doing that because if when there are blank values in the named range, it doesn't default to that first. I took it further: After changing all drop down forms field cells to white, I applied a Conditional Format rule for them all to use black font color when the cell's value wasn't "---SELECT FORM---". Even applied a light cell fill color to further the effect. Works great! Thank you!

    However, your solution also rigidly defines the range of each client's unique documents lists. That's the part I'm required to keep dynamic since they change regularly. And that goes back to the heart of the problem -because it's required to be a dynamic named range, I'm having the problem getting Indirect to refer to it.

  25. #25
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    If you want dynamic list simply select every column (range in column) on List sheet, go to INSERT click Table and now you will be able to add more items under existing items.
    Don't do it for all columns at once, but one by one
    If you want blank field (cell) simply delete "select form" and you will get blank.
    Do you want next attachment with corrections?

  26. #26
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    I should mention that a given user will field dozens of forms requests daily, but must treat each request, even if it's for the same client, separately -with its own row. This is because other fields I didn't include say where to send that request's forms to, and they're always different addresses and departments within the client's organization. I'd like to have the form as Sandy presented it -with client rows already defined and as many drop down fields as needed out to the right, but that solution, though awesome, won't work for me.

  27. #27
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    Yes, I'd love to see what more you've come up with. Applying all this on my end as well. Thank you so much.

  28. #28
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    As you wish
    Attached Files Attached Files

  29. #29
    Registered User
    Join Date
    05-20-2014
    Location
    Salt Lake City, Utah
    MS-Off Ver
    2013
    Posts
    31

    Re: Data Validation List "Source" field Syntax Trouble

    I love the embedded substitutes within the INDIRECT "Source" field formula. Smart. The question remains though, if the resulting text refers to a dynamic, filtered-to-unique-values range like mine, does it still work?...

  30. #30
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Data Validation List "Source" field Syntax Trouble

    Maybe I misunderstood.
    With my example where and why do you need formula/name for dynamic range?
    Last edited by sandy666; 01-25-2017 at 03:20 AM. Reason: comment changed

+ 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. [SOLVED] Data validation "list" - "source" has too many characters
    By bee88 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-21-2015, 04:28 PM
  2. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  3. Replies: 5
    Last Post: 01-31-2013, 01:03 PM
  4. Using "if" for data validation list source
    By jay7227021 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2012, 03:34 PM
  5. Data Validation "Source" Box - Character limit?
    By gdallas in forum Excel General
    Replies: 6
    Last Post: 02-03-2010, 12:57 PM
  6. [SOLVED] Data Validation - List - Data "NOT BETWEEN" - Source Possible?
    By Duke2U in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2006, 07:30 AM

Tags for this Thread

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