+ Reply to Thread
Results 1 to 3 of 3

Restricting data entry to 1 of 3 cells

Hybrid View

  1. #1
    Registered User
    Join Date
    08-21-2008
    Location
    Staten Island
    Posts
    1

    Question Restricting data entry to 1 of 3 cells

    I have an excell sheet with 3 columns. Each column has a drop down list. Once a choice is made in a column I need the other two columns to not have data.
    It is a rating. Column 1 holds ratings of 1, Column 2 holds ratings of 2, Column 3 holds rating of 3. Only one choice can be made 1,2 or 3. So if a user choses Column 1 and then decides to increase the rating, when he enters the 2 or 3 the original answer in 1 is removed.

    I know it could be handled with a single column with data validation restricting the answer to 1,2,or 3. But the person I am doing this for wants three coulmns.
    Last edited by Gunnjg; 08-21-2008 at 02:34 PM. Reason: typo

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    If you're willing to lose your dropdowns, you can set up data validation to do it as follows. Otherwise, you'll need to use VBA.

    Assuming the columns are A, B, C starting in row 2. Highlight Column A from 2 to last entry. Go to data Validation, choose Custom and remove the checkmark next to "Ignore Blank".
    Enter this formula;
    =OR(A2="",AND(A2=1,B2="",C2=""))
    Then go to the Error Alert Tab and type something like this
    A rating of 1 can only be used here if there is no rating in Columns B and C.  Erase those columns first.
    Whenever anyone tries to enter anything other than a 1 or column B or C is not blank in that row, they will get that error message.

    Does that work for you?

    ChemistB

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Ratings

    Take a look at the example attached.
    I am sure someone can help you write a macro with a loop for large number of entries..
    I have created a small exmple with three sets of buttons. When you select any one button for rating, other two buttons will turn off and clear the ratings.
    Let me know if this works for you.
    modytrane.
    Attached Files Attached Files

+ 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. Clear data in cells with validation
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-25-2008, 10:25 AM
  2. Selecting only cells that require data entry
    By GunRights4US in forum Excel General
    Replies: 2
    Last Post: 01-03-2008, 06:27 PM
  3. Linking cells, not data
    By ccbarnett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-26-2007, 11:32 AM
  4. Using "mirror image" of cells to delete duplicate data?
    By abcd1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2007, 09:12 AM
  5. Problem Linking Cells in Different Workbooks
    By jeffc4442 in forum Excel General
    Replies: 7
    Last Post: 02-23-2007, 11:01 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