+ Reply to Thread
Results 1 to 6 of 6

Sumifs with OR/AND array using cell references

  1. #1
    Registered User
    Join Date
    10-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    40

    Sumifs with OR/AND array using cell references

    I have a need to calculate the total number of calls for a given time frame on a given date and these calls come in on multiple skillsets. Right now I have a SUMIF statement for each skillset and I need to figure out how to combine these into 1 formula for resource management and my sanity.

    Right now it looks like this:
    Please Login or Register  to view this content.
    There are 25 of these skillsets so you can see that 25 of these multiplied by 48 time intervals multiplied by 10 clients... the processing power is insane and excel bogs down.

    I've tried a couple of things I have found on the internet for using arrays but I'm not having luck. Here is an example of what I need.

    Please Login or Register  to view this content.
    So I tried this:

    Please Login or Register  to view this content.
    I also tried wrapping each cell reference in " " but it's still not working.

    Any help would be appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Sumifs with OR/AND array using cell references

    Hard to say without seeing a sample of what you are working with, but knee-jerk reactions says to add a helper column that will ID all those refs (maybe using OR? or VLOOKUP) and return a (say) 1 for matches, then use that in the sumifs?

    The criteria arguments in SuMIF/S() are all AND's, but you cannot just ask excel to count "this" AND "that" in the same column.

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs with OR/AND array using cell references

    Try something like this...

    Make a list of the skillset variables. Let's assume that list is in the range X1:X25.

    Then the formula becomes:

    =SUMPRODUCT(--ISNUMBER(MATCH(Skillset!A2:A10,X1:X25,0)),--(Date!C2:C10=CellRef),--(Time!B2:B10=Cellref),Calls!D2:D10)

    You should avoid using entire columns as range references in array formulas and the SUMPRODUCT function. Use smaller specific ranges.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    10-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    40

    Re: Sumifs with OR/AND array using cell references

    Book2.xlsm

    Here is the file example. The reason I have it check an entire column is the raw data varies from 50,000 lines to 100,000+ lines. I guess I could still guestimate a maximum or something like that. I will try the sumproduct example as well.

  5. #5
    Registered User
    Join Date
    10-20-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    40

    Re: Sumifs with OR/AND array using cell references

    Quote Originally Posted by Tony Valko View Post
    Try something like this...

    Make a list of the skillset variables. Let's assume that list is in the range X1:X25.

    Then the formula becomes:

    =SUMPRODUCT(--ISNUMBER(MATCH(Skillset!A2:A10,X1:X25,0)),--(Date!C2:C10=CellRef),--(Time!B2:B10=Cellref),Calls!D2:D10)

    You should avoid using entire columns as range references in array formulas and the SUMPRODUCT function. Use smaller specific ranges.
    This is actually working quite well. Thank you so much for your help!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs with OR/AND array using cell references

    You're welcome. Thanks for the feedback!

+ 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. SUMIFS formula with AND/OR criteria and cell references
    By jennnnn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2015, 08:48 PM
  2. Using non-contiguous cell references in an array
    By phook01 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 03-26-2014, 03:10 PM
  3. [SOLVED] Sumifs with wild characters and cell references
    By aurisab in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2012, 09:54 PM
  4. Help with SUMIFS w/o using mathematical signs--only cell references
    By mkhaccount in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-25-2012, 01:27 AM
  5. [SOLVED] Help with SUMIFS w/o using mathematical signs--only cell references
    By mkhaccount in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-25-2012, 12:51 AM
  6. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  7. Relative cell references not changing in an array
    By JosieB in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2010, 09:38 AM

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