+ Reply to Thread
Results 1 to 2 of 2

Getting Employee Data From Another Sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    09-23-2024
    Location
    United States
    MS-Off Ver
    365
    Posts
    2

    Getting Employee Data From Another Sheet

    Sheet1 of my workbook contains all my employee information. Sheet2 is where I assign those employees to certain assignments. In the assignments table, I have all the employees in lists in column B. I want to have their employee ID number automatically appear in column A, when I select the employee in column B. I have to get their ID Number from the employees information in Sheet1.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,688

    Re: Getting Employee Data From Another Sheet

    Use Index Match

    Formula: copy to clipboard
    =INDEX(Sheet1!$A$4:$A$11,MATCH(Sheet2!B4,Sheet1!$B$4:$B$11,0))


    or

    xlookup

    Formula: copy to clipboard
    =XLOOKUP(B4,Sheet1!$B$4:$B$11,Sheet1!$A$4:$A$11,,0)


    or

    vlookup to the left

    Formula: copy to clipboard
    =VLOOKUP(B4,CHOOSE({1,2},Sheet1!$B$4:$B$11,Sheet1!$A$4:$A$11),2,0)
    Last edited by alansidman; 10-02-2024 at 05:00 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vba for data entry sheet for employee overtime
    By Abhilashvasu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2020, 11:55 AM
  2. Collect employee data from workbook and write data in another sheet
    By eddijensen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-06-2018, 05:52 PM
  3. [SOLVED] Show employee data from another sheet for current month
    By earthandbody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2015, 10:39 AM
  4. Show employee data from another sheet for current month
    By earthandbody in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2015, 08:09 AM
  5. Show employee data from another sheet for current month
    By earthandbody in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2015, 03:29 PM
  6. Generate output employee data from input employee sheet
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2015, 05:28 PM
  7. [SOLVED] VBA Help one sheet data spread in multisheets by employee code
    By sa.1985 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2012, 07:34 AM

Tags for this Thread

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