Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   Excel formula (https://www.askmehelpdesk.com/showthread.php?t=282649)

  • Nov 18, 2008, 10:09 PM
    mitank
    Excel formula
    I am using Excel 2007.
    I have 2 Sheets.
    In first sheet there are 3 coloumns, first one contains the employes number, second coloumn contains the name of employes and third one contains the department he works in.

    In the second sheet I have drop down list of the names of employes and the employee number.

    Now for Example

    When I select from the drop down list and if I select employee "A", and the employee number as "6506", only if these two criteria matches perfectly with sheet 1, I should get the department he works in. If id does not match the cell should be blank.

    In this in one department there are many employees working, BUT only if the above 2 criteria matches I should get the department he works in, else the cell should show blank.

    Please show with example and if possible downloadable excel sheet.
  • Nov 19, 2008, 05:07 AM
    JBeaucaire
    1 Attachment(s)
    Will this work for you?
  • Nov 19, 2008, 05:50 AM
    ScottGem

    This doesn't make sense. An Employee number should be unique. No two employees should have the same number. So there should be no reason to use name as well.

    A VLookup formula will pull the department based on the employee number.
  • Nov 19, 2008, 08:09 AM
    JBeaucaire

    I was thinking the same thing, but thought I'd give her the answer she asked for first. A straight VLookup will draw all the other pertinent data (Name/Dept/Favorite Color) from the first sheet...

  • All times are GMT -7. The time now is 01:55 PM.