+ Reply to Thread
Results 1 to 3 of 3

IF statement on data Validation

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    IF statement on data Validation

    Hi,

    Can anyone help me on how to place if statement in Data Validation. In allow Validation Criteria, which part I need choose. e.g Decimal, whole number, list, etc


    basically the data as follow

    A1,A2,A3,A4 Validation criteria, List B1:B5

    If A1 selected, A2,A3,A4 must be empty, but if A2,A3,A4 selected, A1 must be empty

    Regards,
    Farid

  2. #2
    Registered User
    Join Date
    11-25-2013
    Location
    Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: IF statement on data Validation

    Hi Farid,

    If I've understood your requirements correctly, you want each cell to have data validation so that only items contained in the list can be selected. However, if A1 isn't blank, then data validation shouldn't let anything be entered in A2 - A4 and vice versa.

    The way I've done that is to create two more lists. That perform the "if" part of the validation.

    Cell A1 uses the list in C1-C5. If A2-A4 are blank, this list is the same as B1-B5. If they're not blank, then C1-C5 are blank. note that this contains an array formula, so you must press CTRL+Shift+Enter instead of pressing enter to submit this formula =IF($A$2:$A$5="",B1,"")

    A2-A4 use the list in C1-C5, which is blank if A1 isn't blank.

    Hopefully this will make sense once you take a look at the attached spreadsheet.

    Larena
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: IF statement on data Validation

    Hi Larena,

    Thanks a lot. I didn't think there is the way around instead of placing formula in validation criteria

    So, does it means that there is no way to place formula on validation criteria, If we choose decimal or whole number, there are minimum & maximum box. can we place IF statement on that ?




    Thanks & regards,
    Farid.
    Last edited by Faridwahidi; 05-13-2014 at 04:21 AM.

+ 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. If Statement & Data Validation Help
    By scoste in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2014, 12:38 PM
  2. [SOLVED] Data VAlidation With If statement
    By excobra in forum Excel General
    Replies: 6
    Last Post: 11-12-2013, 05:28 AM
  3. Data validation and If statement
    By tjohans in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2013, 05:20 PM
  4. Data validation in if statement
    By mahoo in forum Excel General
    Replies: 3
    Last Post: 02-15-2011, 04:06 PM
  5. Data validation IF statement
    By christopherp in forum Excel General
    Replies: 4
    Last Post: 11-12-2009, 11:27 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