+ Reply to Thread
Results 1 to 5 of 5

Sum VLOOKUP in multiple ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    08-29-2007
    Posts
    7

    Sum VLOOKUP in multiple ranges

    Hi,

    I have a spreadsheet containing a tournament result tables where each years tournament get it's own worksheet (named 2014, 2015, ...). I also have a "Hall of fame" worksheet that sums wins, losses, goals made, etc. for all years but I can't get that part to work. The following formula finds the goals made by a team in 2014:
    =VLOOKUP('Hall of fame'!$A2;'2014'!$B$2:$J$7;6;) // The A-column contains the name of the team that is also found in column B of the tables sheets.
    To sum the goals I tried this but it gives me the same result as the one above:
    {=SUM(VLOOKUP('Hall of fame'!$A2;INDIRECT("'"&Years&"'!$B$2:$J$7");6;))} // Years is a named range of years (would be nice to be able to get that by available worksheets)
    Is it possible to do in some other way?

    Thanks in advance!

    Kind regards
    Joakim
    Attached Files Attached Files
    Last edited by Neorth; 11-19-2019 at 06:18 AM. Reason: Example sheet attached

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sum VLOOKUP in multiple ranges

    Hi. Please read the yellow banner, at the top of the page, and post a sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    08-29-2007
    Posts
    7

    Re: Sum VLOOKUP in multiple ranges

    Sorry, missed to upload the example. Now it's there!

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Sum VLOOKUP in multiple ranges

    Please try

    =SUMPRODUCT(SUMIF(INDIRECT("'"&Years&"'!B:B"),$A2,INDIRECT("'"&Years&"'!G:G")))
    Regards.

  5. #5
    Registered User
    Join Date
    08-29-2007
    Posts
    7

    Re: Sum VLOOKUP in multiple ranges

    Thank you! Work like a charm!

+ 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. Dynamic ranges with multiple vlookup
    By great_AS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-24-2017, 05:41 AM
  2. VLOOKUP with multiple ranges
    By Aussibuilder50000 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2016, 08:54 AM
  3. How to Vlookup from two input with multiple ranges ?
    By kalanjeya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-25-2014, 06:40 AM
  4. vlookup multiple ranges
    By 13lack13lade in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2014, 10:18 PM
  5. Can a =vlookup() consider multiple ranges of criteria?
    By MacroPolo in forum Excel General
    Replies: 3
    Last Post: 08-01-2012, 05:07 PM
  6. Vlookup in a macro for multiple ranges, Help?
    By ad9051 in forum Excel General
    Replies: 5
    Last Post: 12-05-2010, 06:48 AM
  7. multiple ranges on Vlookup
    By lpj in forum Excel General
    Replies: 19
    Last Post: 01-11-2006, 01:50 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