+ Reply to Thread
Results 1 to 16 of 16

Data Validation drop down has "_" removed

  1. #1
    Registered User
    Join Date
    04-28-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003, 07 & 10, 16
    Posts
    26

    Data Validation drop down has "_" removed

    Hi - I'm absolutely stumped and have never seen this before. I've taken over another co-workers file and I'm getting familiar with it. They've set up a data validation and I'm not sure how they did it. It's quite impressive.

    On a sheet called "Names", they have a list of US States and it includes an "_". IE:

    New_Hampshire
    New_Mexico
    New_York
    Ohio
    etc, etc.

    On another tab, they have the Data Validation in a cell. It refers to the list of states and in the drop down, the "_" is gone. The drop down is:
    New Hamphire
    New Mexico
    New York
    Ohio

    It look as though there are 2 blank spaces between the word "New" and the 2nd part of the state. I can't seem to find anything unique in looking at the Data Validation.
    Allow = List
    Source = Names!$C$3:$C$27

    There are no macros in this file, so there is no SUBSTITUTION going on (at least that I can see).

    Anyone know what the co-worker (who obviously knows Excel better than me!) did?

    Thanks!

    GRC

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    Post a sample workbook. If they are Dependent Dropdown Lists, you can't have space in the name. So, you'd convert it from space to underscore.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-28-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003, 07 & 10, 16
    Posts
    26

    Re: Data Validation drop down has "_" removed

    Thanks for having a look. Hope I uploaded the file correctly!
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    I'm really not sure how that is happening. I would normally do it the other way. That is, I'd list the states with a space rather than an underscore and convert it in the Data Validation using
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    So, New York would become New_York and you'd have a Named Range for the Cities in New York.

    That said, I'd have a matrix with the States across the top and cities listed below. That way, I could have Dynamic Named Ranges for each of the States

  5. #5
    Registered User
    Join Date
    04-28-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003, 07 & 10, 16
    Posts
    26

    Re: Data Validation drop down has "_" removed

    Yeah, it is really strange (and cool!). I'm now determined to figure out how they did this. Probably going to spend way too much time researching this.

    If / When I figure it out, I'll post the solution.

    thanks for taking the time to look at though. Much appreciated.

    GRC

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Data Validation drop down has "_" removed

    No real magic involved, if you change the screen resolution you will see the underscores.
    Just don't ask me why.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    ... if you change the screen resolution you will see the underscores.
    Seriously?

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Data Validation drop down has "_" removed

    Seriously?
    Yup, at least that's what happened for me.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    Spent ages looking at it . Will have another look.

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Data Validation drop down has "_" removed

    Oops, realised that this is wrong
    No real magic involved, if you change the screen resolution you will see the underscores.
    No idea why I said screen resolution, it's the zoom setting I was talking about.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    To be fair, I think that's how I interpreted it, though still not had a chance to look.

  13. #13
    Registered User
    Join Date
    04-28-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003, 07 & 10, 16
    Posts
    26

    Re: Data Validation drop down has "_" removed

    I
    feel
    stupid....

    Thanks for looking at that and resolving it. Kind of relieved it was something so easy. Didn't even realize the zoom setting was @ 80% and not 100%.

    Can't believe that in all the years I've been working w/ Excel, I've never seen or heard of that.

    Thanks again!

    GRC

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Data Validation drop down has "_" removed

    Must admit I've never encountered it before & it only seems to happen at 80% zoom.

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    Don't feel stupid. I spent quite a while looking at it and checking and I could not work out what was going on.

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: Data Validation drop down has "_" removed

    As mentioned, the attached workbook is how I'd do your Data Validation and Conditional Formatting.
    Attached Files Attached Files

+ 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. Macro to "Jump to" or find data based on a data validation drop down list
    By dropkickmurphy08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2016, 02:19 AM
  2. Replies: 1
    Last Post: 07-31-2014, 02:51 AM
  3. DATA VALIDATION ALLOW TEXT "DROP" and "check"
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2014, 12:52 AM
  4. Replies: 1
    Last Post: 10-23-2013, 05:20 PM
  5. [SOLVED] Data validation: allow entry into a cell if other three cells have "X", "Y" and "Z"?
    By RogerRangeRover in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2013, 04:49 AM
  6. VBA Button "NEXT" next to drop down (data validation) list
    By J00 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2012, 02:06 PM
  7. Replies: 0
    Last Post: 08-30-2012, 04:39 PM

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