+ Reply to Thread
Results 1 to 3 of 3

Index Match not cycling through entire index. Formula not updating when values change...

  1. #1
    Registered User
    Join Date
    01-02-2020
    Location
    LA, Cali
    MS-Off Ver
    365
    Posts
    9

    Index Match not cycling through entire index. Formula not updating when values change...

    Hello! I have 2 tables: a PTO/Overtime table and an employee Availability table/per employee on separate worksheets.

    Ideally, I want to be able to append a new PTO or overtime record to the PTO_OT table with the following columns:
    • Employee
    • StartDate
    • EndDate
    • Hours

    In the Availability table, I have 365 row records for daily availability. In the PTO/Overtime column, I want to index match against the PTO_OT Table and return the hours if the date is within the Start-End date range and the Employee name matches. I am trying the following formula:

    =IFERROR(INDEX(PTO_OT[Hours],MATCH(1,(Availability_EmpA!A2=PTO_OT_Emp)*(Availability_EmpA!B2>=PTO_OT[StartDate])*(Availability_EmpA!B2<=PTO_OT[EndDate]),0)),0) --> cntrl+shift+enter

    The issue I am having is that the first PTO match based on DATE is being returned to the first employee avail. worksheet, though the employee names do not match.
    The second PTO record is being returned to the second employee avail worksheet though the employee names do not match... and so on

    Also, I have 2 PTO records for the same employee. They should both be reflected in the same employee availability table.
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index Match not cycling through entire index. Formula not updating when values change.

    I suspect your issue is the fact you're using PTO_OT_EMP as opposed to PTO_ET[Employee], the former is a named range tied to a different table object.

    Further to the above, you might also consider switching to a SUMIFS approach, e.g.:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-02-2020
    Location
    LA, Cali
    MS-Off Ver
    365
    Posts
    9

    Re: Index Match not cycling through entire index. Formula not updating when values change.

    Correcting the range name back to PTO_OT[Employee] corrected the issue. Thank you!

+ 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. Replies: 1
    Last Post: 08-17-2019, 01:11 PM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Index/Match Formula is not updating as expected
    By tuph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2014, 11:21 PM
  4. Replies: 3
    Last Post: 10-16-2014, 07:02 AM
  5. Index match offset to get subsequent index values in a column
    By Andrew_Step in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2013, 02:55 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. Replies: 4
    Last Post: 12-04-2012, 04:45 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