+ Reply to Thread
Results 1 to 4 of 4

Merging 2 tables to track Employee sales during different periods and locations

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    India
    MS-Off Ver
    Pro Plus 2019
    Posts
    86

    Merging 2 tables to track Employee sales during different periods and locations

    Hi!

    I need to merge 2 tables, one of which has Employee IDs and their postings at various locations during the time periods with start and end dates for posting.
    Table 2 has the sales made by the respective employees on a particular date and the amount of sale.

    I need to merge both the tables so as to get the Employee no., date of sale, sale value and the location at which sale was made.

    I tried using combinations of vlookup, hlookup, index, match etc. but am stuck since there are multiple date entries/ more than one matching criteria between the 2 tables.

    Note: Sample file attached
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Merging 2 tables to track Employee sales during different periods and locations

    Update your profile about Excel version, because Ex2003 doesn't support xlsx extension

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Merging 2 tables to track Employee sales during different periods and locations

    AS "Result table" is "Table2" with location added

    try ...

    location ..

    in C20


    =INDEX($D$3:$D$15,SMALL(IF(($A$3:$A$15=A20)*($B$3:$B$15<=B20)*($C$3:$C$15>=B20),ROW($A$3:$A$15)-ROW($A$3)+1,""),1))

    ...confirmed 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.

  4. #4
    Registered User
    Join Date
    04-06-2012
    Location
    India
    MS-Off Ver
    Pro Plus 2019
    Posts
    86

    Re: Merging 2 tables to track Employee sales during different periods and locations

    Works beautifully.
    Thanks a lot!!!

+ 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] sumif using multiple sales locations
    By makinmomb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-06-2016, 03:08 AM
  2. Track Employee Attendance
    By maabbas in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-17-2015, 08:17 AM
  3. [SOLVED] Track Purchase Orders for multiple locations
    By chinitapr in forum Excel General
    Replies: 9
    Last Post: 10-03-2014, 01:37 PM
  4. Percent of Total for multiples locations and periods
    By TriciaJ in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-02-2010, 10:25 AM
  5. Keeping track of employee training
    By IcarusFB in forum Excel General
    Replies: 6
    Last Post: 12-31-2005, 11:14 AM
  6. How do i sum vales of sales falling between certain time periods
    By the_kane in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-09-2005, 08:06 AM
  7. [SOLVED] What is the best way to Track Employee Absences on a spreadsheet?
    By Raysen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2005, 12:06 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