+ Reply to Thread
Results 1 to 3 of 3

Validation Rules

  1. #1
    Forum Contributor
    Join Date
    09-18-2007
    Posts
    116

    Validation Rules

    Is there a way to have 2 validations rules for a group of cells.

    I would like Row 12 I to Z to only be aloude X in so I would use the list validation. I would then like to use a custom validation of
    =COUNTIF($I$12:$Z$12,I12)=1 so you can only put X in 1 cell in range I12 to Z12

    Is there a way this con be done.

    I would like it so you had a pull down menu with X as the only option.

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I don't believe you can have that combination in Data Validation...

    But possibly you can use comboxes for the drop downs with cells behind each combobox as a cell link and then use Data Validation only for the formula check.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by stoney1977
    Is there a way to have 2 validations rules for a group of cells.

    I would like Row 12 I to Z to only be aloude X in so I would use the list validation. I would then like to use a custom validation of
    =COUNTIF($I$12:$Z$12,I12)=1 so you can only put X in 1 cell in range I12 to Z12

    Is there a way this con be done.

    I would like it so you had a pull down menu with X as the only option.

    Thanks
    You can apply only one validation in a cell or range of cells.
    Try the following formula for your purpose.

    =AND(I12="X",COUNTIF($I$12:$Z$12,I12)=1)
    It will allow once and only "X" to be entered in the range.

    Does this work?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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