+ Reply to Thread
Results 1 to 5 of 5

How to restrict a specific character using data validation?

  1. #1
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Shropshire, England
    MS-Off Ver
    Excel 2007 /10 /13
    Posts
    118

    How to restrict a specific character using data validation?

    this is bound to be a really simple answer, but I can't find it.

    I want to stop users from entering just a 'space' character in a cell using data valdiation, but it doesn't seem to have an option for 'not equal to'. I'm happy for them to enter text or numbers.

    Can anyone please put me out of my misery on this one?

    Forgot to say, this is in 2007
    Last edited by BillDoor; 08-30-2013 at 09:08 AM. Reason: update

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to restrict a specific character using data validation?

    In Data Validation select Custom in Formula enter "=" and check "Apply these setting to all other cells"
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: How to restrict a specific character using data validation?

    Quote Originally Posted by AlKey View Post
    In Data Validation select Custom in Formula enter "=" and check "Apply these setting to all other cells"
    That restricts them from entering anything.

    To only prevent them from entering a space, use this formula:

    =IF(A1=" ",FALSE,TRUE)
    When I say semicolon, u say comma!

  4. #4
    Forum Contributor
    Join Date
    12-13-2012
    Location
    Shropshire, England
    MS-Off Ver
    Excel 2007 /10 /13
    Posts
    118

    Re: How to restrict a specific character using data validation?

    thanks all, I've also stubbled upon using this -

    =A1<>" " as the formula in validation

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to restrict a specific character using data validation?

    Ok, this seems to be working to prevent entering "=" and allow any other will go in.

    Use formula below and format validation cell(s) as text.

    =ISERROR(FIND(CHAR(61),A1))
    Last edited by AlKey; 08-31-2013 at 01:47 PM.

+ 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. Data Validation to restrict field length
    By ohlalayeah in forum Excel General
    Replies: 4
    Last Post: 08-24-2012, 09:16 PM
  2. Replies: 4
    Last Post: 09-06-2011, 10:36 AM
  3. data validation to specific character
    By abdulla saeed in forum Excel General
    Replies: 5
    Last Post: 07-06-2011, 07:58 PM
  4. Data Validation: Need to restrict drop-down selection
    By splenguin in forum Excel General
    Replies: 5
    Last Post: 09-08-2009, 03:46 PM
  5. Excel2000: Data Validation to restrict entries
    By Arvi Laanemets in forum Excel General
    Replies: 1
    Last Post: 02-22-2005, 05:39 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