+ Reply to Thread
Results 1 to 5 of 5

sum(if()) with large range of criteria

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    sum(if()) with large range of criteria

    I am looking for a way to use sumifs with hundreds of criteria and was hoping that i could do so somehow using arrays.

    The closest I've gotten to is this formula: =SUM(IF(A2:A9={"A","B"},B2:B9,0))

    However, this requires me to manually digit all the conditions. I want to sumif based on a range of criteria, based on cell values. Any help on doing this would be appreciated.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: sum(if()) with large range of criteria

    Try

    =SUMPRODUCT(SUMIF(A2:A9,E2:E3,B2:B9))


    E2 = A
    E3 = B

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: sum(if()) with large range of criteria

    can you post an example workbook

  4. #4
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: sum(if()) with large range of criteria

    wow impressive! that works perfectly. is there a way to combine that formula with HLOOKUP() or something? I would be looking to define the column of the sum range based on a cell value.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: sum(if()) with large range of criteria

    Can you be more specific?
    Exactly how should the sum column be determined?

    This will set the sum column based on which column "some value" is found in Row 1 between column B and Z

    =SUMPRODUCT(SUMIF(A2:A9,E2:E3,INDEX(B2:Z9,0,MATCH("Some Value",B1:Z1,0))))

+ 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. Search large date range with narrow filetered range
    By druth in forum Excel General
    Replies: 14
    Last Post: 08-02-2014, 09:01 AM
  2. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  3. Using a sumif with one criteria over a large range
    By bmbailey in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-10-2012, 04:24 PM
  4. Large function with if criteria
    By ronleex324 in forum Excel General
    Replies: 6
    Last Post: 03-20-2009, 02:30 PM
  5. [SOLVED] dsum returns 0 if criteria range too large
    By JT Spitz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2006, 07:55 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