+ Reply to Thread
Results 1 to 9 of 9

Data validation problem

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Data validation problem

    Dear everyone.

    Please refer my attached document.
    In the first column of my data. I want to key in product part number.
    One part number will have several serial number, I will key in serial number at second column.
    I want to make sure that only can key in same part number in the first column. when someone enter number is different from other number, system will tell him that only can enter one same number. how could I do this? using data validation?
    PS:every time number is entered in first column can be different. but every time only allow same number in the first column.
    Attached Files Attached Files
    Last edited by Adamlearnexcel; 12-17-2012 at 12:29 PM.

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Data validation problem

    Hi

    Dont think you will achieve that with Data Validation, looking at your sheet it is the same number all the time so why not use your autofil to have the cell already populated and no one has to enter anything in column A

    Chris
    Click my star if I helped Thanks

  3. #3
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Data validation problem

    Hi

    I stand corrected see attached file (by myself)


    Chris
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Data validation problem

    I am having trouble understanding your explanation but here's what I think is going on:
    • The user starts with a blank form. They can enter any part number into A2.
    • All subsequent part numbers must be the same as the one they entered into A2.


    If that is correct, then you can apply data validation in A3:A50. Select Custom and use the formula

    =$A$2
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: Data validation problem

    Quote Originally Posted by 6StringJazzer View Post
    • The user starts with a blank form. They can enter any part number into A2.
    • All subsequent part numbers must be the same as the one they entered into A2.

    Yes, this is what i mean, but how come when I follow your step, I cannot enter same value in the following row?

  6. #6
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: Data validation problem

    Hi, Sir, how come I still can enter different numbers?
    Attached Files Attached Files

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Data validation problem

    I'm sorry, I gave you the wrong formula. See attached for correction.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Data validation problem

    The way to enter this formula is to highlight the cells where you want to apply it starting with A3, then set data validation, Custom, using this formula:

    =A3=$A$2

  9. #9
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: Data validation problem

    OK, I see, it worksl, 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