+ Reply to Thread
Results 1 to 6 of 6

Sumifs with Array sum range..

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    seattle, wa
    MS-Off Ver
    Excel 2010
    Posts
    37

    Sumifs with Array sum range..

    Attached file should be self-explanatory.

    I want to be able to set sum range using lookup or match..
    For example if I change B2 value to Nov-13, I want it to sum column K.

    Thank you

    Sumifs Range.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sumifs with Array sum range..

    You could do it that way, but it would be an obtuse solution.

    Can you use this instead:

    B3:

    =SUMPRODUCT(($G$3:$G$20=A3)*($H$3:$H$20=$E$19)*($I$2:$M$2=$B$2)*($I$3:$M$20))

    and copied down
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sumifs with Array sum range..

    In B3 copied down
    =SUMIF($G$3:$G$20,A3,INDEX($I$3:$M$20,,MATCH(B$2,$I$2:$M$2,0)))
    Does that work for you?
    Last edited by ChemistB; 02-07-2014 at 02:34 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sumifs with Array sum range..

    Nice ChemistB. Never would have thought to use a nested INDEX.

    So to get the Product ID, then:

    =SUMIFS(INDEX($I$3:$M$20,,MATCH($B$2,$I$2:$M$2,0)),$G$3:$G$20,A3,$H$3:$H$20,$B$1)

    and copied down

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sumifs with Array sum range..

    Thanks Daff

  6. #6
    Registered User
    Join Date
    01-14-2014
    Location
    seattle, wa
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Sumifs with Array sum range..

    Thank you both! I need to tweak the formula some bit for the actual data but I got the idea..!
    Last edited by inincubus; 02-07-2014 at 04:03 PM.

+ 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] Array/Sumifs. Dunno which to use.
    By nogstai in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2013, 03:56 AM
  2. SumIfs with array formula
    By mz1378 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-16-2012, 06:03 AM
  3. Inserting a range or an array into a sumifs formula
    By mike_vr in forum Excel General
    Replies: 1
    Last Post: 11-03-2011, 11:34 AM
  4. Array versus. SUMIFS
    By billybobb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-27-2011, 03:56 PM
  5. Array Formula with SumIFS
    By Avinash Beepath in forum Excel General
    Replies: 5
    Last Post: 02-02-2011, 01:45 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