+ Reply to Thread
Results 1 to 5 of 5

data validation - text or blank cell

  1. #1
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112

    data validation - text or blank cell

    Hi - I am trying to do a data validation rule - I want the cells to have text or numbers or be completely empty (blank), if not an alert happens. I appreciate it is simple.

    regards

    Andrewm

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: data validation - text or blank cell

    But that means you accept all values. Text will be any text or text + numeric, number will include (float, int, date, time)...

    Do you really need validation on that? Or is there more detail missing?
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112

    Re: data validation - text or blank cell

    I have a conditional formatting to change the cell's colour when the cell is blank. however when the cell is not blank the conditioning does not work. I want an alert if the cell is not blank. Someone has entered something (space bar etc) and assumes the cell is blank, but is not.

    if there is text - this is ok.
    if the cell looks blank, but is not - conditioning formating doesnt happen. Thus needs an alert

    andrewm

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: data validation - text or blank cell

    That's bit difficult to deal with formula alone. As seemingly blank cell can hold any number of characters.

    Ex: Non-printing characters, one or more spaces, carriage return etc.

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: data validation - text or blank cell

    The combination of CLEAN,SUBSTITUTE and TRIM can help you
    Please Login or Register  to view this content.
    TRUE will be in the case of cell A1 looks like empty.

+ 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] VBA or Formula? Data Validation List depending on adjacent cell being blank or not
    By drgkt in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-09-2020, 05:25 AM
  2. Replies: 1
    Last Post: 07-22-2016, 04:03 PM
  3. [SOLVED] If cell blank don't allow data validation via a pull down list in a next cell
    By cwby44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2014, 11:30 AM
  4. If cell equals a text then insert a number, (text cell comes from a data validation)
    By floridashaughn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 03:24 PM
  5. Replies: 18
    Last Post: 09-18-2013, 10:29 AM
  6. Data Validation issue - alert when cell is blank
    By pbody in forum Excel General
    Replies: 1
    Last Post: 01-17-2013, 08:39 PM
  7. Data Validation List: No empty or blank cell values
    By SiLeNCeD in forum Excel General
    Replies: 0
    Last Post: 11-14-2012, 06:41 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