+ Reply to Thread
Results 1 to 2 of 2

Validation in Excel Sheet

  1. #1
    Registered User
    Join Date
    04-06-2006
    Posts
    12

    Validation in Excel Sheet

    Hi,
    I have an EXcel sheet, where in i have 2 spread sheets.The first one is display sheet where i want to get the values displayed from the second one which has all the data.

    Example:
    When the user enters an EMPLOYEE NO, the Excel sheet has to search for the EMPLOYEE NO stored as a list in the second spread sheet, and if found display all the details say his address,phone no etc.If not found it should display "NOT AVAILABLE"

    So i need t write a formula, where in it validates the EMPLOYEE NO in the first spread sheet with that of the second spread sheet(which has a long list of EMPLOYEE NO's).

    How do I do that.Please let me know

  2. #2
    Pete_UK
    Guest

    Re: Validation in Excel Sheet

    Define a named range in the second sheet which covers all the Employee
    Numbers - highlight all the cells, eg A2 to A100, then Insert | Name |
    Define and give this a single name, such as "Staff".

    Then in your first sheet select the cell where you want to enter the
    Employee Number and click Data | Validation then Settings (tab) and in
    the Allow panel select List and in the Source panel enter =Staff. You
    can also specify on the other tabs an input message if you want one to
    appear, and also specify what you want to do if an invalid entry is
    made in the cell, i.e. "Not Recognised". Then click OK.

    Now when you click on the cell where you want to enter the Employee
    Number you will see a pull-down, from which you can only select the
    numbers on your second sheet.

    In other columns you can use a VLOOKUP( ) formula to bring across the
    other data that you require, such as address, phone number etc.

    Hope this helps.

    Pete


+ 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