+ Reply to Thread
Results 1 to 5 of 5

Sumproduct using Name Range as Criteria

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Sumproduct using Name Range as Criteria

    First post: looking to troubleshoot using a name range in a multiple criteria sumproduct formula.

    For instance, this formulas works fine:

    Please Login or Register  to view this content.
    but, when I try to substitute the two-alpha codes as a defined name range ("keys"), it errors as "N/A":

    Please Login or Register  to view this content.
    An example workbook is attached. Any thoughts?

    Example Workbook.xlsx

    Thanks in advance.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,904

    Re: Sumproduct using Name Range as Criteria

    I changed named range to this (Keys) and was able to make it work with SUMIFS function entered as an array formula (Ctrl+Shift+Enter)

    ={"PP","AF","AB","MF","AC"}

    =SUM(SUMIFS(Data!$C$2:$C$233,Data!$B$2:$B$233,B$4,Data!$A$2:$A$233,Keys))


    and

    =SUMPRODUCT((Data!$C$2:$C$233)*(Data!$B$2:$B$233=B$4)*(Data!$A$2:$A$233=Keys))
    Last edited by AlKey; 07-15-2014 at 11:32 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Sumproduct using Name Range as Criteria

    See the red ".

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    13,764

    Re: Sumproduct using Name Range as Criteria

    With an pivot table.

    See the attached file.

  5. #5
    Registered User
    Join Date
    11-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Sumproduct using Name Range as Criteria

    Adding the quotation marks (" ") around the name range eliminates the error ("N/A"); however, the answer is zero (0). So, that doesn't work. bummer

+ 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] Sumproduct with a range and CountIf criteria
    By mhynson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-23-2014, 03:57 PM
  2. sumproduct IF two arrays match a range of criteria?
    By Paul Sword in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 10:06 AM
  3. [SOLVED] Sumif/sumproduct with a range as a criteria
    By fukirua in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-05-2013, 07:58 PM
  4. Multi criteria sumproduct name range query
    By noaman in forum Excel General
    Replies: 3
    Last Post: 03-17-2011, 06:17 AM
  5. Sumproduct with multiple criteria & dynamic range
    By e_lad in forum Excel General
    Replies: 10
    Last Post: 03-17-2010, 09:15 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