+ Reply to Thread
Results 1 to 7 of 7

Validation error message when data does not yet exist.

  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    10

    Validation error message when data does not yet exist.

    Hi,

    Can you help me? I'm trying to put an error message on the look up field when I enter a certain employee and if data or employee number is not yet on the database. I'm working with validation and with this formula =if(c4<>range,1,0) and it does not work.
    Hope you can help me with new formulat that could work.

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Validation error message when data does not yet exist.

    it would help if you posted a sample sheet. However if you are using vlookup, it will return an error automatically if the data point is not found.

  3. #3
    Registered User
    Join Date
    03-30-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Validation error message when data does not yet exist.

    Hi,

    Thanks for the reply. Attached is a sample excel file that I am working with. On the summary sheet, if I enter a certain employee number on C4 and if its not on the list of employee number on raw data sheet it will give me an error message. Validation formula will be a great help.

    Thanks in advance!
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Validation error message when data does not yet exist.

    Try this formula in data validation

    =ISNUMBER(MATCH(C4,'RAW DATA'!$A:$A,0))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    03-30-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Validation error message when data does not yet exist.

    Hi,

    Sorry the formula does not work.

    thanks for the reply though.

  6. #6
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Validation error message when data does not yet exist.

    @rodge:

    are you talking about the #NA that appear in the 'User's Basic Information' area when an Employee Number does not exist, or the VB Error Message that you get when that condition is encountered?
    Last edited by icestationzbra; 04-09-2012 at 02:25 PM.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Validation error message when data does not yet exist.

    Sorry, I believe you can't directly reference cells in another spreadsheet with Excel 2003. I used your defined name EmployeeIDs and it seems to be working.

    =ISNUMBER(MATCH(C4,EmployeeIDs,0))
    Check the uploaded file.
    Attached Files Attached Files

+ 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