+ Reply to Thread
Results 1 to 3 of 3

Create a error message for a duplicate entry

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

    Create a error message for a duplicate entry

    Is it possible to create an error message when duplicate text is entered in to a column? For example, cell A1 contains the text AS-HG-001. If that text is entered again anywhere in column A I want an error message to pop up that sais "Item already entered" and not allow the user to enter the duplicate text.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Create a error message for a duplicate entry

    you could probably do this with conditional formatting, and make it change color?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Create a error message for a duplicate entry

    Hello
    As an alternative, maybe use a Custom Data Validation formula, for example:

    Please Login or Register  to view this content.
    Here it's applied to the range A2:A20. You can insert whatever error message you require.

    DBY

+ 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