+ Reply to Thread
Results 1 to 4 of 4

Blank or equal in data validation

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-12-2006
    Location
    Portugal
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    212

    Blank or equal in data validation

    Hello to all,
    Please see attached spreadsheet.
    Cells marked in yellow are filled by using values on data validation (values A and M).
    My goal is to force validation on the yellow area so the following conditions are met:
    1.Only one of the cells can be blank, not both.
    2.The two cells cannot contain the same chosen value.
    Many thanks for any kind help,
    Octavio

    I was reading my post again and of course both cells are blank before validation, so cell A2 can be painted to call the user attention...

    Thank You
    Attached Files Attached Files
    Last edited by oteixeira; 12-10-2022 at 10:55 AM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Blank or equal in data validation

    Try, CF for A2=COUNTA(B2:C2)=0, CF for B2:C2=OR(COUNTA($B$2:$C$2)=0,$B$2=$C$2).

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Blank or equal in data validation

    Hello oteixeira,

    I have used some helper columns on Sheet2 with Formulas, and Conditional Formatting on Sheet1, where you would be entering your Data.

    I am lost in trying to summarize or explain in this post how to go about with what I have done. Sorry about that, but please try the attached Sample Workbook.

    Thank you!
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Blank or equal in data validation

    Hello oteixeira,

    Oops! I forgot to work on the Colouring of Cells C3 and D3, to draw the users' attention, if Cell C3 is "Empty".

    Please select those two Cells and set Colour to "No Fill", > go to Conditional Formatting, > Select "Manage Rules", > "New Rule", and enter the formula as shown below, and deicide on which "Fill Colour" you would prefer.

    Formula: copy to clipboard
    =AND($C$3="",$D$3="")


    Thank you.

+ 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] IF greater than or equal to = Pass/Fail, IF blank = leave blank
    By Lgonzalez91 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-28-2018, 05:18 PM
  2. Replies: 1
    Last Post: 12-19-2017, 01:44 PM
  3. Replies: 3
    Last Post: 07-24-2017, 01:41 PM
  4. Replies: 1
    Last Post: 07-22-2016, 04:03 PM
  5. IF greater or equal then formula without using data validation
    By nstcctv in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-27-2015, 12:32 PM
  6. [SOLVED] less than or equal to and string in data validation
    By ENEMALI in forum Excel General
    Replies: 3
    Last Post: 03-04-2015, 09:12 AM
  7. Replies: 6
    Last Post: 11-01-2013, 06:25 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