+ Reply to Thread
Results 1 to 4 of 4

How to allow unique values in three columns

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    How to allow unique values in three columns

    I want to create a validation which will allow unique row of first name, last name and email. When I enter a new row, it should not allow if the same values already exist in previous rows.

    First Name Last Name Email
    John Doe [email protected]
    Scott Doe [email protected] - should be allowed
    John Doe [email protected] - should not be allowed
    Robin Scott [email protected] - should be allowed.


    How do I achieve this. Thank you.

  2. #2
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: How to allow unique values in three columns

    With your data in columns A:C, assuming no header row, select starting from A2 and down until the bottom of where you want to validate in column C and enter this formula for the validation: =NOT(AND(COUNTIF($A$1:$A1,$A2)>0,COUNTIF($B$1:$B1,$B2)>0,COUNTIF($C$1:$C1,$C2)>0))

  3. #3
    Registered User
    Join Date
    06-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to allow unique values in three columns

    Thank you. Appreciate quick reply.

  4. #4
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: How to allow unique values in three columns

    No problem Glad I could help ... Appreciate the feedback!

+ 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