+ Reply to Thread
Results 1 to 4 of 4

Sumifs with array

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Sumifs with array

    Hi All,

    I'm trying to make a Sumifs formula where I do not want to sum the array portion. The "InterType" is the array. After I hit the Ctrl+Shift+Enter, the total doesn't match the pivot table I have.

    I found info online that an array needs to go in the brackets, but the example I found are putting brackets around just the array. When I do it, it puts bracket around everything. Can someone tell me what I might be doing wrong.

    HTML Code: 
    Sample file attached.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Sumifs with array

    I was using a name range as array, but it's still not working right. This is what I have now.

    Sum(SUMIFS(DataTbl[Voucher Count],DataTbl[Month],J12,DataTbl[Year],J11,DataTbl[Group],H15,DataTbl[CG-type],"<>"&"Fedex","Concur","Postmaster",""))

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Sumifs with array

    hi there. first to explain what went wrong.
    pressing CTRL + SHIFT + ENTER has no effect on this. the problem is that you are doing SUMIFS on 4 types of criteria;
    Does not equal Fedex
    Does not equal Concur
    Does not equal Postmaster
    Does not equal space
    so one useful trick to learn when understanding formulas is to press the F9 key to calculate. So go to the cell where the formula resides and click inside the formula bar. select the the whole formula and press F9. you get:
    ={389;472;379;447}
    389 is summing those not equals to Fedex, 472 for those not equals to Concur, and so on. Excel can't present 4 values, so you need to sum that up. that is however not what you need.

    so i will sum up those that are equals to those 4 instead. and use SUMPRODUCT in front instead of array formula:
    =SUMPRODUCT(SUMIFS(DataTbl[Voucher Count],DataTbl[Month],J12,DataTbl[Year],J11,DataTbl[Group],H15,DataTbl[CG-type],InterType))

    and then use the total sum of ALL CG-Type minus the ones above. that would give me Others:
    Formula: copy to clipboard
    =SUMIFS(DataTbl[Voucher Count],DataTbl[Month],J12,DataTbl[Year],J11,DataTbl[Group],H15)-SUMPRODUCT(SUMIFS(DataTbl[Voucher Count],DataTbl[Month],J12,DataTbl[Year],J11,DataTbl[Group],H15,DataTbl[CG-type],InterType))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Sumifs with array

    Works perfectly. Great explanation too, so I was even able to understand it. (I get confused a lot!)

+ 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] Please help SUMIFS with Array
    By Phegasus in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-23-2017, 02:28 AM
  2. SUMIFS where one citeria is an array
    By vetrox in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2017, 09:09 PM
  3. [SOLVED] Trying to Accomplish a SumIfs within an Array
    By smls in forum Excel General
    Replies: 4
    Last Post: 07-02-2015, 04:19 PM
  4. [SOLVED] SUMIFS with an array
    By frsaxon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2014, 02:21 PM
  5. [SOLVED] Sumifs with Array sum range..
    By inincubus in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-07-2014, 02:48 PM
  6. SumIfs with array formula
    By mz1378 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-16-2012, 06:03 AM
  7. 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