+ Reply to Thread
Results 1 to 3 of 3

Fill in drop down box when item entered cell

  1. #1
    Registered User
    Join Date
    11-22-2011
    Location
    Princeton, NJ
    MS-Off Ver
    Excel 2010
    Posts
    1

    Fill in drop down box when item entered cell

    Hi all,

    I am trying to do the following:

    I have a list created which allows me to select between "Pass", "Fail", "Not Tested". This is done using data validation. All cells in column D have this option from D5 down.

    I want to column to be blank (Default) when nothing is entered in the corresponding A column (e.g. When A7 is blank I would like D7 to be blank). D7 should not be allowed to enter data when there is nothing in A7.

    When the column A cell is populated, I want the Default to go to "Not Tested" in the D cell (e.g. Cell A7 is populated with number 1.4.6.2, and D7 now states "Not Tested").

    I want to be able to select "Pass" or "Fail" at a later date with the information still entered, but I should not be able to delete "Not Tested".

    Is there an easy way to accomplish this? I'm not too familiar with VB, and I've stumbled upon some sites with useful commands, but nothing I'm doing seems to work. For example, I click cell D7 and tried typing =IF(ISBLANK(A7),"","Not Tested") but that didn't seem to work as excel spewed out "The value you entered is not valid. A user has restricted values that can be entered into this cell." I'm guessing this is due to my list.

    Any ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Fill in drop down box when item entered cell

    suppose data is in sheet 1
    right click the sheet tab and click view code and in the window that comes up copy tis EVENT CODE

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Fill in drop down box when item entered cell

    Right Mouse-Click sheet tab and select "View Code". Put this code in the window that opens.

    Please Login or Register  to view this content.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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