+ Reply to Thread
Results 1 to 5 of 5

If statement and Data Validation - NEED spaces

  1. #1
    Registered User
    Join Date
    11-23-2015
    Location
    Green Lake, Wisconsin
    MS-Off Ver
    Professional Plus 2010
    Posts
    2

    If statement and Data Validation - NEED spaces

    Hello all,

    I've been an unregistered guest for quite some time on this forum, this is the first time I've been unable to find a workaround for my needs in the answered questions, so here is my first registered post! I found this post (http://www.excelforum.com/excel-gene...tion-list.html) to be similar to what I'm looking for, but not exact.

    I am working on a form that looks like "1form.jpg" (attached) on sheet2.
    1form.JPG

    It pulls data from "1reference.jpg" on sheet1.
    1reference.JPG

    I am looking to populate a list of lakes in each county, based on what county is chosen. The reason I have been unable to use data validation is that one of my counties has two words: Green Lake. At this point I am unwilling to put an underscore in or remove the space, simply to keep the ability to publish the file to PDF for distribution later on. (The end users of that PDF want a polished, clean look.)

    Is there a formula I've overlooked that can accomplish this? I appreciate any and all help; this is one of many roadblocks I'm encountering in a massive database I'm building.

  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: If statement and Data Validation - NEED spaces

    Hi and welcome to the front row!

    Have you considered using Dependent Drop Down list functionality? Check out Debra's site here http://www.contextures.com/xlDataVal02.html

    where you'll find all you need to know on this subject.
    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
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,627

    Re: If statement and Data Validation - NEED spaces

    You should be using named ranges for all lists, vis., counties, lake names, etc.
    You can use validation formulas such as the below to remove spaces in one list that reference another list:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    11-23-2015
    Location
    Green Lake, Wisconsin
    MS-Off Ver
    Professional Plus 2010
    Posts
    2

    Re: If statement and Data Validation - NEED spaces

    Thanks to both of you! I must have been too focused on how it wasn't working to find the spot in the post where it was explained. I had that link to Debra's "Contextures" site open, it was one of my first references when looking this up. Works like a charm.

  5. #5
    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: If statement and Data Validation - NEED spaces

    Glad to have helped and thanks for the rep. As you've probably found Debra's site is a mine of information about Excel stuff.

+ 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] Dependent Data Validation Lists and the rule of no spaces in named ranges
    By Butcher1 in forum Tips and Tutorials
    Replies: 3
    Last Post: 04-02-2015, 03:38 PM
  2. Data validation off list with spaces
    By BWellman in forum Excel General
    Replies: 1
    Last Post: 12-16-2014, 11:02 PM
  3. [SOLVED] Userform Text Box Data Validation Criteria- Letters & Spaces only, less than 130 character
    By Rschwar23 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2014, 02:43 PM
  4. [SOLVED] Format Data based on an IF STATEMENT on how many empty spaces in a cell
    By bkeat in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2013, 10:57 AM
  5. [SOLVED] Skip blank spaces in data validation list
    By skip2mylew in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-04-2013, 09:20 PM
  6. Formula to include spaces in linked data validation list
    By hbomb1927 in forum Excel General
    Replies: 2
    Last Post: 10-25-2011, 07:01 PM
  7. Spaces and Data Validation
    By Paige in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2005, 06: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