+ Reply to Thread
Results 1 to 3 of 3

Create a custom formula for data validation

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    10

    Create a custom formula for data validation

    I would like to create a formula that I can input into a custom data validation that will not allow duplicate enteries and will only allow the data being entered to be from a named list. I know I can use the custom formula =COUNTIF($A$1:$A$500,A16)=1 with not allowing duplicates. But I'm not sure how, or if I can, also have a formula that at the same time does not allow items to be entered that are not on a named list. Any ideas would be appreciated. Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Create a custom formula for data validation

    Hi barber,

    Use the AND function... =AND(condition1,condition2,...)

    =AND(COUNTIF($A$1:$A$500,A16)=1,NOT(ISNA(VLOOKUP(A16,table,1,0))))

    Of course, you can change the the second condition to your own formula...

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    Indianapolis, IN
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Create a custom formula for data validation

    That did the trick! Thank you so much.

+ 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