+ Reply to Thread
Results 1 to 5 of 5

How to only allow input in one cell if another cell has text?

  1. #1
    Registered User
    Join Date
    01-24-2015
    Location
    uk
    MS-Off Ver
    excel online
    Posts
    7

    How to only allow input in one cell if another cell has text?

    Hi there,

    I have three columns:
    A - Keep
    B - Kill
    C - Comments

    I want to set up some conditions that the user cannot enter column A or B unless they've made a comment in column C.

    How do I do this?

    It should show a pop up box saying 'Please enter a comment'.

    Thank you

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: How to only allow input in one cell if another cell has text?

    Data Validation under the Data tab in the ribbon can allow you to do this relatively easily.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    01-24-2015
    Location
    uk
    MS-Off Ver
    excel online
    Posts
    7

    Re: How to only allow input in one cell if another cell has text?

    Thanks mcmahobt.

    I'm a complete beginner. Would you please outline the steps?

    Thanks

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: How to only allow input in one cell if another cell has text?

    Say your Keep,Kill, and Comments start in cells A1:C1.

    Select cell A1. In Data Validation, select Settings, then for the Allow section, select Custom. In the formula bar, enter:

    Please Login or Register  to view this content.
    Then be sure to deselect "Ignore Blank" next to the Custom dropdown box.

    This will only allow values (unless manually overwritten) in A1 if C1 is not an empty cell. To apply to B1, just copy cell A1 and paste into B1.

    You can also enter Error Alerts that prompt the user to input a comment into C1 upon an error.

  5. #5
    Registered User
    Join Date
    01-24-2015
    Location
    uk
    MS-Off Ver
    excel online
    Posts
    7

    Re: How to only allow input in one cell if another cell has text?

    You're a genius.

    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. Replies: 2
    Last Post: 07-13-2014, 04:57 AM
  2. Replies: 2
    Last Post: 05-09-2014, 09:17 AM
  3. Replies: 2
    Last Post: 10-08-2012, 08:10 AM
  4. [SOLVED] Event Macro to insert text in cell based on input of another cell
    By nplouffe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2012, 11:54 AM
  5. Input cell value from one sheet to another if adjacent cell is specific text
    By TheRoni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2012, 12:49 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