+ Reply to Thread
Results 1 to 6 of 6

Not Entering the Same Number Twice

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    Minneapolis
    MS-Off Ver
    Excel 2007
    Posts
    4

    Not Entering the Same Number Twice

    I'm creating a large bill of materials and need to assign part numbers to all components. I'm using several worksheets and want to avoid accidentally using the same part number twice. Is there a way Excel will tell me if I've entered the same number twice?

    Thanks, Joel

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Not Entering the Same Number Twice

    the easiest way with conditional formatting
    Attached Files Attached Files
    Last edited by tom1977; 10-18-2011 at 12:15 PM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    10-18-2011
    Location
    Minneapolis
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Not Entering the Same Number Twice

    Tom-

    Can you explain how this conditional formatting is done? Will it work across several worksheets?

    Thanks, Joel

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,218

    Re: Not Entering the Same Number Twice

    You could also use Data Validation.

    Allow:= Custom
    Formula:=
    Please Login or Register  to view this content.
    I have added this to Toms' example
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Registered User
    Join Date
    10-18-2011
    Location
    Minneapolis
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Not Entering the Same Number Twice

    Marcol-

    This is great. Is there a way to simply give a warning instead of completely disallowing the same value to be entered. There are some duplicate parts in the BOM. Can this method work across several worksheets?

    Thanks, Joel

  6. #6
    Registered User
    Join Date
    10-18-2011
    Location
    Minneapolis
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Not Entering the Same Number Twice

    I figured out how to just show a warning. Is there a way for this data validation to work across several worksheets?

    Thanks, Joel

+ 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