+ Reply to Thread
Results 1 to 6 of 6

Stuck with SUM using Index Match or Vlookup

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    UAE
    MS-Off Ver
    Office 365
    Posts
    37

    Stuck with SUM using Index Match or Vlookup

    So, I have a schedule file and we code the schedules of each of the employees in there and the different codes have different hours. I will be coding the schedules staring E4 to AH4 horizontally for the month for one agent. I have another sheet named as Shifts & Legends, I have the legends in Tab Shifts & Legends Starting from B2 to B55, and their Hours from D2 to D55. I need to pick shifts coded from E4 to AH4 in Duty Rota tab and look for the hours in legends and rota tab for shifts coded and add those hours in the Duty Rota Tab in cell AO4. I had used Index Match earlier as

    =SUM(INDEX('Shifts & Legends'!D:D, MATCH(E4:AH4, 'Shifts & Legends'!B:B, 0))) and

    A Vlookup as

    =SUM(VLOOKUP(E4:AH4, 'Shifts & Legends'!$B$2:$D$55, 3, FALSE))

    but none of them seem to work the way they should. Any help with this is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,427

    Re: Stuck with SUM using Index Match or Vlookup

    Please try in AO4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Stuck with SUM using Index Match or Vlookup

    Try this,

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-26-2015
    Location
    UAE
    MS-Off Ver
    Office 365
    Posts
    37

    Re: Stuck with SUM using Index Match or Vlookup

    Both of these work like a charm. Thanks guys!
    Last edited by mohdabrar; 11-16-2023 at 02:21 AM. Reason: Solved

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,427

    Re: Stuck with SUM using Index Match or Vlookup

    You are Welcome!

    Thanks for the feedback and glad to have helped. .

    If you haven't already, please consider adding reputation to all helpers you think they deserve.
    In that case please click * Add Reputation left below their answers.

  6. #6
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,004

    Re: Stuck with SUM using Index Match or Vlookup

    You are welcome.

+ 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] Stuck on Index / Match Is there a better way without VBA?
    By mfusfw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-10-2023, 03:17 PM
  2. IFERROR INDEX MATCH Im stuck
    By JB20 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-10-2017, 09:57 AM
  3. [SOLVED] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  4. STUCK** SUMIF INDEX MATCH - formula output sum of date range or month sum
    By Antprod in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2015, 08:13 AM
  5. [SOLVED] Stuck on an isna match index problem
    By envelope pusher in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2015, 04:30 PM
  6. [SOLVED] VLOOKUP & MATCH - Pls help i am stuck
    By kulins in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-16-2015, 07:37 AM
  7. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM

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