+ Reply to Thread
Results 1 to 6 of 6

data validation problem

  1. #1
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    data validation problem

    In my file I have inserted data validation for surname as a warning message. When the surname is same then the message should display as a warning 'Duplicate entry' and show message 'Check first name'. I don't want to restrict the entry but only I want to warn the user that the same surname is already enter, then the user will check the first name and if it's same he will cansel the entry otherwise he if the first name is different then he will enter the details.
    Please check and solve my problem.

    Thank you.

    Mukesh
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: data validation problem

    In data validation -- custom use

    =COUNTIF($B$2:B2,B2)>1
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: data validation problem

    Hello Ace_XL,
    Thank you for correction. It's working fine.

    Thank you.

    Mukesh

  4. #4
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: data validation problem

    Sorry! I have one problem that the validation should show the message when the entry is duplicate only and not for all entries. This formula restricts all the entries whether it is duplicate or not. Solution please.
    File attached.

    Mukesh
    Attached Files Attached Files

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: data validation problem

    Look into the Input Message & Error Alert when you are in the Data Validation dialogue box.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Forum Contributor
    Join Date
    12-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    672

    Re: data validation problem

    Ok! Now my problem is solved. I used the following formula:

    =COUNTIF($C$6:$C$2000,C6)=1

    Thank you.

    Mukesh

+ 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