+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT/SUMIFS Dynamic array doesn't works

  1. #1
    Registered User
    Join Date
    12-21-2017
    Location
    Gotham City
    MS-Off Ver
    2016
    Posts
    7

    SUMPRODUCT/SUMIFS Dynamic array doesn't works

    Dear all,

    Original Formula:
    =SUMPRODUCT(SUMIFS(Sales!$H:$H,Sales!$E:$E,OFFSET('Product Portfolio'!$A$1,MATCH($M14,'Product Portfolio'!$A$1:$A$918,0)-1,1,COUNTIF('Product Portfolio'!$A$1:$A$918,$M14),1),Sales!$D:$D,$H14,Sales!B:B,$K14,Sales!$F:$F,$N14))


    Revised Formula:
    =SUMPRODUCT(SUMIFS(Sales!$H:$H,Sales!$E:$E,OFFSET('Product Portfolio'!$A$1,MATCH($M16,'Product Portfolio'!$A$1:$A$918,0)-1,1,COUNTIF('Product Portfolio'!$A$1:$A$918,$M16),1),Sales!$D:$D,$H16,Sales!B:B,$K16,Sales!$F:$F,OFFSET('Channel Sub Channel'!$A$1,MATCH($N16,'Channel Sub Channel'!$A$1:$A$918,0)-1,1,COUNTIF('Channel Sub Channel'!$A$1:$A$918,$N16),1)))

    The original formula works. However, after I changed the last SUMIF criteria for Sales!$F:$F with an additional dynamic range, the formula doesn't works and return zero.

    Can anyone help please?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,235

    Re: SUMPRODUCT/SUMIFS Dynamic array doesn't works

    Will you please attach a sample Excel workbook? Nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: SUMPRODUCT/SUMIFS Dynamic array doesn't works

    Can you speak what is cell of your last criteria? Your formula produce 'Channel Sub Channel'!B3 as criteria with your formula =OFFSET('Channel Sub Channel'!$A$1,MATCH($N16,'Channel Sub Channel'!$A$1:$A$918,0)-1,1,COUNTIF('Channel Sub Channel'!$A$1:$A$918,$N16),1).
    Last edited by shukla.ankur281190; 12-27-2017 at 03:01 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Registered User
    Join Date
    12-21-2017
    Location
    Gotham City
    MS-Off Ver
    2016
    Posts
    7

    Re: SUMPRODUCT/SUMIFS Dynamic array doesn't works

    Dear all,

    Thank you for the replies. I have provided a sample data set in the attachment file.
    Note that the actual data is much more complex with different types of product portfolios and channel definitions.
    I use only one as an example in the file.
    Attached Files Attached Files
    Last edited by regoroes; 12-27-2017 at 05:01 AM. Reason: Edited attachment

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: SUMPRODUCT/SUMIFS Dynamic array doesn't works

    Try

    C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-21-2017
    Location
    Gotham City
    MS-Off Ver
    2016
    Posts
    7

    Re: SUMPRODUCT/SUMIFS Dynamic array doesn't works

    Quote Originally Posted by shukla.ankur281190 View Post
    Try

    C2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks Shukla! Can you kindly help me understand how does this formula works?

+ 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 array formula doesn't recognize Array 5
    By trstew in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-08-2016, 05:01 PM
  2. Optimize SUMPRODUCT with dynamic sum range. SUMIFS??
    By ron2k_1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2015, 05:33 PM
  3. [SOLVED] IF formula in ARRAY = works <> doesn't work
    By bkanealy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-02-2014, 09:31 AM
  4. [SOLVED] weekday() result used in an array formula doesn't work. Formula works if i type in date
    By aarco50 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-25-2014, 03:25 PM
  5. [SOLVED] Dynamic Array, Index & Match, SUMIFS Formula Help!
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-03-2014, 09:27 PM
  6. [SOLVED] Assigning Range to Array - one way works, the other doesn't
    By Jim-1st in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2012, 03:01 PM
  7. Sumproduct with dynamic array
    By benaw in forum Excel General
    Replies: 3
    Last Post: 10-18-2009, 07:24 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