+ Reply to Thread
Results 1 to 5 of 5

Sumproduct with vlookup (or any other solution that will help)

  1. #1
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Sumproduct with vlookup (or any other solution that will help)

    Hi. Would appreciate any help on this.
    I am attaching a spreadsheet which should explain what I am trying to get at. I have a table of data which is a download from a dw (I have picked 6 rows but there are maybe 3500 rows in the actual download). As shown in the output needed section, I need to to pick data from Table 2 to give me 3 numbers i.e. Month, Quarter to Date and Year to Date based on the month picked, for a country e.g. France. I built Table 1 to give me the 0,1 values based on which month is picked. In the table shown, the month picked is June and accordingly the 0,1 is worked for Qtd and YTD as well.

    I can use the =sumproduct(b3:m3,b12:m12) for getting the result for France (row 12) but the problem is that since the data is based on a data download, France can move up or down on the download and my static formula would not work...and hence was looking at vlookup to help me pick France, but again vlookup, I believe, doesn't work with arrays...so am stumped. Could someone help? Maybe I am going in the wrong direction altogether?? HELP

    Krish
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Sumproduct with vlookup (or any other solution that will help)

    In your example in B19 enter
    Please Login or Register  to view this content.
    and drag right

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Sumproduct with vlookup (or any other solution that will help)

    Using your posted workbook...
    these regular formulas return the country totals for MTH, QTD, and YTD based on the flags in Table1
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    02-02-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    65

    Re: Sumproduct with vlookup (or any other solution that will help)

    Brilliant... thanks to Pepe and Ron..both the methodologies work!! Just made my day!!

    Does it mean that sumproduct and vlookup can never work together :-)??

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Sumproduct with vlookup (or any other solution that will help)

    They could probably, but I'm personnaly not a big fan of Vlookup as INDEX/MATCH is a much more flexible ( and faster ) solution

+ 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. Sumproduct solution I think
    By Centre13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-31-2013, 07:55 PM
  2. [SOLVED] SUMIFS or SUMPRODUCT or Other solution to sum a range.
    By timgmurphy99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2013, 06:57 PM
  3. Solution with SumProduct?
    By boobot in forum Excel General
    Replies: 2
    Last Post: 05-22-2006, 03:00 PM
  4. SumProduct Solution?
    By Sige in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-25-2005, 12:25 PM
  5. [SOLVED] ??SUMPRODUCT? other solution?
    By Jane in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-20-2005, 11:10 AM

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