+ Reply to Thread
Results 1 to 3 of 3

SUMPRODUCT with SUM nested, can it be done?

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    SUMPRODUCT with SUM nested, can it be done?

    Hello,

    I'm trying to write a sumproduct that sums a variable line of arrays based upon certain criteria; =SUMPRODUCT(--(AN3:AN6="L"),SUM(M3:AE6))

    As you will see I am trying to SUM a different size array to the criteria array, and there am getting a #VALUE error.

    My question is; is there a way of performing the SUM operation within the SUMPRODUCT formula? As the SUM array itself will change based upon other variables and I can't just create a matching column array with the SUM a standalone operation.

    Any help would be greatly appreciated!

    Thanks

    rikkydik
    Last edited by rikkydik; 03-29-2017 at 02:41 PM. Reason: SOLVED

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUMPRODUCT with SUM nested, can it be done?

    If you don't have any text values in M3:AE6 then try this version

    =SUMPRODUCT((AN3:AN6="L")*M3:AE6)

    or use this alternative to allow text values in the sum range

    =SUMPRODUCT((AN3:AN6="L")*ISNUMBER(M3:AE6),M3:AE6)
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-28-2012
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: SUMPRODUCT with SUM nested, can it be done?

    Thanks very much thats awesome, I've always shied away from SUMPRODUCT but its come in handy!!

    Now my formula is finally ready =SUMPRODUCT(--(INDIRECT("'"&'Backing Sheet'!$B$70&"'!"&"AN"&$A30&":"&"AN"&$B30)="L")*ISNUMBER(INDIRECT("'"&'Backing Sheet'!$B$70&"'!"&HLOOKUP(Parameters!$Z$14,'Backing Sheet'!$V$5:$AO$8,3,0)&$A30&":"&"AF"&$B30)),INDIRECT("'"&'Backing Sheet'!$B$70&"'!"&HLOOKUP(Parameters!$Z$14,'Backing Sheet'!$V$5:$AO$8,3,0)&$A30&":"&"AF"&$B30))

+ 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. Multiple IF Statement - nested IF, Sumproduct...
    By 1Stacy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-04-2016, 06:47 PM
  2. [SOLVED] Multiple IF Statement - nested IF, Sumproduct...
    By 1Stacy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-14-2016, 12:37 PM
  3. Need Assistance with IF, AND, SUMPRODUCT Nested Formula
    By eparr1026 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2013, 03:08 PM
  4. Isnumber nested with sumproduct
    By dastgir in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-02-2012, 07:28 AM
  5. Replies: 5
    Last Post: 03-13-2011, 05:34 PM
  6. Sum nested within Sumproduct
    By MCII in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-04-2008, 01:20 PM
  7. Nested sumif/sumproduct
    By SteveDB1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2006, 03:30 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