+ Reply to Thread
Results 1 to 7 of 7

Data Validation Restricts a Cell Based on Value Entered

  1. #1
    Forum Contributor
    Join Date
    12-22-2015
    Location
    San Antonio, Texas
    MS-Off Ver
    2016
    Posts
    116

    Data Validation Restricts a Cell Based on Value Entered

    Column A will have either a zero (0), one (1), or two (2) entered in the cells. The data validation will allow a zero (0) to be entered and nothing will happen. If a one (1) or two (2) is to be entered, the data validation will prompt a user to choose from a named list (drop-down) in column B first. Only then may a number equal to or great than one (1) be entered in column A. I need a data validation formula that will be placed into a table as a calculated column to reflect this.

    Help?

  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,189

    Re: Data Validation Restricts a Cell Based on Value Entered

    Attach a sample workbook (not image).

    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 GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Contributor
    Join Date
    12-22-2015
    Location
    San Antonio, Texas
    MS-Off Ver
    2016
    Posts
    116

    Re: Data Validation Restricts a Cell Based on Value Entered

    I’ll simplify it: Cell A1 is allowed a zero (0) with B1 being blank. If a one (1) is entered in A1, the user is not allowed to do so until B1 is filled. (B1 has a list.)

  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,189

    Re: Data Validation Restricts a Cell Based on Value Entered

    Sorry but I don'yt understand the logic:

    IF A1=0, then B1 must be blank

    If A1=1, B1 is a named list

    IF A1=2 ???

    You can do something like this:

    in A1

    DV

    =list

    Sourcce:0,1,2

    in B1

    DV

    =List

    =IF(A1=0,Blank,IF(A1=1,List1,List2))

    Where Blank is named range (Blank cell), List1 is named range list for A1=1, List2 is named range list for A1=2

  5. #5
    Forum Contributor
    Join Date
    12-22-2015
    Location
    San Antonio, Texas
    MS-Off Ver
    2016
    Posts
    116

    Re: Data Validation Restricts a Cell Based on Value Entered

    I’m sorry! I’m sorry! Take away the drop-down lists and all. Let me try something else. For data validation, if you put a zero (0) in A1, NOTHING HAPPENS from a data validation standpoint. If you try to put anything greater than zero, you’re not allowed. You’re told that B1 needs a value first. (B1 has a drop-down, but that is unimportant at the moment.)

  6. #6
    Forum Contributor
    Join Date
    12-22-2015
    Location
    San Antonio, Texas
    MS-Off Ver
    2016
    Posts
    116

    Re: Data Validation Restricts a Cell Based on Value Entered

    I figured it out
    =IF($A1>0,$B1<>"",$B1=""). Uncheck ignore blank.

  7. #7
    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,189

    Re: Data Validation Restricts a Cell Based on Value Entered

    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: 5
    Last Post: 02-19-2015, 11:10 AM
  2. Data Validation based on the values entered in two other columns.
    By staljunk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-31-2014, 07:32 PM
  3. [SOLVED] Formula Needed to copy data from a cell based on data entered into another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 03:16 AM
  4. Automatically Filter Data Based on what is entered into cell
    By bpyoung83 in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 09-07-2013, 03:54 AM
  5. cell validation based on last value entered
    By johnp12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2012, 10:52 AM
  6. Transfer data based on name entered into a cell
    By avidcat in forum Excel General
    Replies: 2
    Last Post: 01-23-2011, 09:04 AM
  7. Adding values to a cell based on entered data
    By Tin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2006, 08:55 AM

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