+ Reply to Thread
Results 1 to 7 of 7

Data validation bug

  1. #1
    Registered User
    Join Date
    01-18-2017
    Location
    Calgary
    MS-Off Ver
    2010
    Posts
    4

    Data validation bug

    Hi all,
    I've seen a couple posts that have pointed me in the right direction for a solution for Data Validation across Excel 2007-2010 however I haven't been able to get any of them to work for me.

    I am trying to create a spreadsheet that a user enters some variables (Format Name) and then take the user entered values, make it unique, and then create a drop down list from the unique list. I have the spreadsheet doing just that, however the first time someone opens the spreadsheet they have to go to Data -> Data Validation and while having the final list's cell selected to get the list to display correctly. I've tried moving the list around to the same spreadsheet but I just ran into similar problems.

    I've basically tried this: http://superuser.com/questions/59849...and-excel-2010 as a solution.
    Any help would be apprecaited.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Data validation bug

    I'm struggling to understand your request.

    Would you set out in simple steps exactly what you do and what you expect to see.
    Be very specific and note which cells/ranges you select, which cells/ranges should change and what happens and why.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-18-2017
    Location
    Calgary
    MS-Off Ver
    2010
    Posts
    4

    Re: Data validation bug

    For sure (I re-read my post and I agree its vague).
    So, in the 'A' column of the formats tab, id like a user to be able to enter any value. Any value from this column is placed into the Name Manager with this formula : =OFFSET(Formats!$A$2,0,0,COUNT(IF(Formats!$A$2:$A$999="","",1)),1) with the intent of removing any duplicate (i.e A,A,B,B would become A,B in the new list). Then in the 'Variables' tab, under Column F (Code_Type) I am attempting to make a drop down list using only the unique values from the list I just created. Here is where I run into the problem though. From my understanding, because I am referencing a column outside of the same tab, the Data Validation doesn't work. If I were to open this spreadsheet and click on Code_Type, only the first value from my list will appear. If I go into Data -> Data validation and simply hit Ok (without changing any options) then my entire list will appear. Basically the list will not populate unless I press the data validation button.

    This spreadsheet needs to be shared with peers, so I am hoping to make it so that the list simply works and that no one else needs to click data validation for it to work.

    Small example: If a user enters A,B,B,C,D,1,1,E into Format_Name, then in the Variables tab under Code_Type, id like the drop down list to display A,B,C,D,1,E.

  4. #4
    Registered User
    Join Date
    01-18-2017
    Location
    Calgary
    MS-Off Ver
    2010
    Posts
    4

    Re: Data validation bug

    Any help would be appreciated. Does this issue only occur if the formulas are in different tabs?

  5. #5
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: Data validation bug

    Hi G3th,

    It looks like you already created a dynamic named range, so I think all that you need to do is put "=List" in the data validation source box instead of the formula.

    Thanks,
    DMG

  6. #6
    Registered User
    Join Date
    01-18-2017
    Location
    Calgary
    MS-Off Ver
    2010
    Posts
    4

    Re: Data validation bug

    If I put "=List" it will pull the information sans where I made it unique. This does put me in the right direction though and i'm sure i can figure out the rest from here. Thanks for the reply

  7. #7
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,919

    Re: Data validation bug

    Pivot Table to the rescue! I do this all the time. The quickest, easiest way to make a unique list of values is to use a Pivot Table. I did this against the formats information and the results of the pivot table is on the Lookup List Sheet. I changed your named dynamic range to overlay this table. =OFFSET('Lookup List'!$A$4,0,0,COUNTA('Lookup List'!$A:$A)-1,1)

    One suggestion I make is that to assure that the pivot table always encompasses the amount of data you have on the formats sheet is that you either overlay the data with a named dynamic range and use it as a data source, or convert the range to an Excel Table and use it as the pivot table source. I prefer tables.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  2. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  3. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  4. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  5. Adding Date Data Validation to cells with List Data Validation
    By biggtyme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2013, 09:47 AM
  6. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM
  7. data validation-How to set data validation for user to key in 24H time format?
    By crapit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-12-2006, 08:00 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