+ Reply to Thread
Results 1 to 6 of 6

Data validation - Validation List if statement

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Data validation - Validation List if statement

    Hi,

    I am trying to use Data Validation - Validation List in C1. However, I want only users to choose from the list if A1=B1. If A1 is not equal to B1, an error message should show and the users cannot choose from the list. How do I do it?

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Data validation - Validation List if statement

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on "Reply" then GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113
    Quote Originally Posted by JohnTopley View Post
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on "Reply" then GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Hi John,

    Apologies. Please refer to attach. Basically, from C2 to C5, users can choose from validation list because Column A = Column B. Except for C3 because A3 is not equal to B3. Hope this information is enough. Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Data validation - Validation List if statement

    Try this ...

    Named range "Errror" has text "Invalid Entry: Clients do not match"

    in DV

    Source: =IF(A2=B2,Status,Error)

    If you need more than this you will need VBA.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113
    Quote Originally Posted by JohnTopley View Post
    Try this ...

    Named range "Errror" has text "Invalid Entry: Clients do not match"

    in DV

    Source: =IF(A2=B2,Status,Error)

    If you need more than this you will need VBA.
    Thanks John!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Data validation - Validation List if statement

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 3
    Last Post: 05-09-2016, 08:27 PM
  2. If statement with data validation list
    By scottkelley80 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2014, 11:55 AM
  3. data validation list with an if statement (different problem than I've found online)
    By justinhampton81 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2014, 09:46 PM
  4. Combining If statement and data validation (non-list)
    By zangana in forum Excel General
    Replies: 0
    Last Post: 08-07-2012, 07:54 AM
  5. Performing a Nested if statement with a drop down data validation list
    By THKUCOMEAGAIN in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2012, 07:58 AM
  6. IF statement for data validation list
    By Lassie in forum Excel General
    Replies: 2
    Last Post: 01-01-2011, 11:27 PM
  7. Can a data validation list be used as part of if statement
    By mkmed in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2008, 03:01 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