+ Reply to Thread
Results 1 to 2 of 2

Mandatory Input based on another cell

  1. #1
    Forum Contributor
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    Home 2010
    Posts
    122

    Mandatory Input based on another cell

    I'm aware of validation to PREVENT entry to cells without prior conditions, but my requirements are the opposite of this.

    If there is data in a specific location on a SPECIFIC worksheet, REQUIRE input in another cell on that sheet.

    I've played with code to accomplish this across a workbook, which as I understand it is the only way this can work, but, I need this for only specific worksheets in a workbook. Here's the code I used via a workbook scope. Can this be applied to a worksheet scope?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    Home 2010
    Posts
    122

    Re: Mandatory Input based on another cell

    I figured this out by putting boolean values to check for input in one location, and basing my data validation off of those boolean values.

    For example, I have the formulas: =IF(A268="",1,0) in Cell L2 (Require something in cell A268), and formula =IF(B2="",1,0) in cell K2 (Require something in cell B2). So, I select where I want input validation, and for the criteria, I selected "Custom" from the drop down. I used the formula "=AND($L$2<>1,$K$2<>1)" for the criteria. So, if cell A268 or B2 are empty, prevent entry into my selected area for data validation (prevent data from being entered).

    I probably could have just put the formula in the data validation for the cells directly, rather than using helper cells.

+ 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. Make multiple cell input mandatory if initial cell has input.
    By dwporter in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-23-2017, 08:06 PM
  2. Replies: 14
    Last Post: 01-22-2013, 12:07 PM
  3. how to generate error message for an empty cell (mandatory input cell)
    By asankar24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-20-2012, 12:37 PM
  4. Mandatory cell input with drop down menue
    By Hermann3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2012, 04:57 AM
  5. To make several cells mandatory based on other cell input.
    By nukecity83 in forum Excel General
    Replies: 1
    Last Post: 10-13-2009, 05:35 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