+ Reply to Thread
Results 1 to 3 of 3

Data Validation - Number, Length and no Duplicates

  1. #1
    Forum Contributor
    Join Date
    01-14-2010
    Location
    England
    MS-Off Ver
    2013
    Posts
    110

    Data Validation - Number, Length and no Duplicates

    Hi Guru's,

    A few years ago the below formula/answer was posted and it worked great.
    This did data validation to ensure the cells had 6 digits and it was not duplicated in that column.
    Quote Originally Posted by Haseeb A View Post
    Hello,

    Assume decimals also not allowed. try this;

    =AND(INT(A1+0)=A1+0,LEN(A1)=6,COUNTIF(A$1:A1,A1)<=1)
    I would now like to expand on this a little if possible, i would now like my data validation to only allow numbers?


    The rule should be:
    • Must be 6 digits in length
    • No duplicates in that column
    • Must be numeric

    Can you help with this please?

    Regards,
    Jamie

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Data Validation - Number, Length and no Duplicates

    Wouldn't be enough:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    01-14-2010
    Location
    England
    MS-Off Ver
    2013
    Posts
    110

    Re: Data Validation - Number, Length and no Duplicates

    That's got it!

    Thank you very much

+ 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. Macro button to collect data from 2 columns of unknown length & duplicates removal
    By regresss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-29-2015, 05:30 PM
  2. Duplicates & creating new number after validation
    By Nasir Choudhary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2013, 11:26 AM
  3. Data Validation: Numbers Only, Exactly Length
    By dtrimble in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-27-2012, 08:25 AM
  4. Replies: 10
    Last Post: 08-15-2012, 10:20 AM
  5. Data Validation List Length
    By Barmoley in forum Excel General
    Replies: 5
    Last Post: 08-17-2010, 06:36 PM
  6. help with length of data validation
    By liamlynch1982 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 08-04-2009, 07:27 PM
  7. [SOLVED] Data Validation List Length
    By Alex Mackenzie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2005, 10:05 PM

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