+ Reply to Thread
Results 1 to 2 of 2

Check cell for valid data

  1. #1
    Registered User
    Join Date
    10-02-2008
    Location
    Michigan
    Posts
    68

    Check cell for valid data

    When the user enters data into a cell, I need to verify the data.
    The valid data options are EL MR MW. If the user enters one of these I don't want to do anything. If the user enters an incorrect value I want to change the cell to 'error' I am currently doing this in VBA but would like to do it in a worksheet function if possible.

    Thanks,
    Bob Hiller
    Last edited by excelbobabc; 01-16-2009 at 12:05 PM.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Why not just use data validation to prevent an incorrect input altogether?

    Data > Validation, on the Settings tab, allow List, then in the list, include:

    EL,MR,MW

    You can enter a pop-up message when incorrect data is entered on the Error Alert tab.

    HTH

    Jason

+ 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