+ Reply to Thread
Results 1 to 4 of 4

VLookup multiple values in lookup table - how can I sum?

  1. #1
    Registered User
    Join Date
    05-25-2016
    Location
    Hollywood, CA
    MS-Off Ver
    2016
    Posts
    79

    VLookup multiple values in lookup table - how can I sum?

    I'm trying to fill in a grid for a week for employee wages, but some sheets (days) have more than 1 value (if someone has regular and overtime). VLookup works great except for individuals that have multiple values due to overtime. Is there an efficient way to have these values add before going to the grid? I have 3 people on Monday that have values I need to sum (this is easy enough to do manually, but when there's lots of OT, it's tedious), but can't figure an easy way to do this. Anyone know of a way to do this (I actually run into this sort of thing a lot)?
    Thanks for any advice, ideas, etc....
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: VLookup multiple values in lookup table - how can I sum?

    Hi trstew,

    You could use SUMIF rather than vlookup to return the values. That way it will return the sum of the persons cost, i.e. regular and overtime, rather than just returning the first match.

    Regards,

    Snook

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: VLookup multiple values in lookup table - how can I sum?

    Perhaps this?
    =IF(SUMIF(M!B:B,Grid!$A3,M!G:G)=0,"Off",SUMIF(M!B:B,Grid!$A3,M!G:G))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: VLookup multiple values in lookup table - how can I sum?

    Thanks for the rep

+ 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] VLOOKUP with multiple values to lookup
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-19-2016, 05:39 AM
  2. Replies: 10
    Last Post: 09-16-2015, 11:25 PM
  3. Can I use VLookup with multiple lookup values?
    By shonu1320 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2014, 10:11 AM
  4. Vlookup with multiple lookup values
    By lilgingy in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-12-2012, 10:21 PM
  5. Looking Up Values using Lookup Table (in Excel would be a vlookup)
    By learning_vba in forum Access Tables & Databases
    Replies: 3
    Last Post: 07-26-2011, 02:04 PM
  6. Using a VLOOKUP with multiple lookup values
    By jshore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2011, 06:22 PM
  7. Replies: 1
    Last Post: 02-09-2011, 11:52 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