+ Reply to Thread
Results 1 to 5 of 5

Need help - Looking for a formula that will will extract data by date and employee number

  1. #1
    Registered User
    Join Date
    04-14-2017
    Location
    Plymouth, minnesota
    MS-Off Ver
    2016
    Posts
    35

    Need help - Looking for a formula that will will extract data by date and employee number

    I have attached a spreadsheet for work that shows the data we track. It lists each day and what each person did for the day on sheet 2. I'm looking for a formula to take that data from sheet 2 and plug it into sheet 1 for an individual person. If I enter the person's employee number in cell A1 on sheet 1 it would pull the data from sheet 2 for that person for each day of the week and insert them into columns B,C,D, etc.. So I need a formula that matches the employee number from cell A1 in sheet 1 to row B in sheet 2 and matches the date from row A in sheet 1 to the date in row 1 in sheet 2 then plugs in the data across the sheet in sheet 1. Make sense?

    In the example the formula would show what employee number 45744 did on December 29th, 28th, 27th, 26th. All that data is pulled from sheet 2 and put into sheet 1 in cells B18-X18 for the 29th.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,298

    Re: Need help - Looking for a formula that will will extract data by date and employee num

    This proposed solution employs a helper row on sheet 2, which may be hidden for aesthetic purposes.
    The formula that populates the helper row (1) is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The array entered formula* that populates the table on sheet 1 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Need help - Looking for a formula that will will extract data by date and employee num

    In B2, then drag across fully.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-14-2017
    Location
    Plymouth, minnesota
    MS-Off Ver
    2016
    Posts
    35

    Re: Need help - Looking for a formula that will will extract data by date and employee num

    This worked perfectly. I have 1 add on question. Lets say I had multiple sheets with this information on it and I wanted to reference all of them. Wherever it says sheet 2 in the formula couldn't I add the sheets I wanted it to reference to that?

    Ex:
    =IFERROR(INDEX(Sheet2:Sheet5!$E$3:$OE$250,MATCH(Sheet1!$A$1,Sheet2:Sheet5!$B$3:$B$250,0),MATCH(Sheet1!$A2,Sheet2:Sheet5!$E$1:$OE$1,0)+MATCH(B$1,$B$1:$X$1,0)-1),"")

    Then it should reference sheets 2 through 5 correct? I did that but it didn't work.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Need help - Looking for a formula that will will extract data by date and employee num

    Formla will not work for 3D. UDF is required for this.

+ 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. [SOLVED] Formula to extract activities of each employee on each date
    By prkhan56 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-30-2016, 08:33 AM
  2. 2 Sets of Data, need to extract one cell based on employee name
    By kevingcp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2015, 01:39 PM
  3. [SOLVED] Match submission date to Employee number for each Quarter
    By pytheus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2014, 10:33 PM
  4. [SOLVED] Use a formula within a macro to extract data and copy down x number of rows
    By rdowney79 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-15-2013, 12:25 PM
  5. Replies: 0
    Last Post: 06-04-2013, 09:01 PM
  6. Extract Technician employee number from one cell.
    By ebin charles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2012, 09:58 AM
  7. Formula to extract Employee work schedule report from "date of hiring list"
    By ravikiran in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-13-2010, 05:56 PM

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