+ Reply to Thread
Results 1 to 5 of 5

SUMIF a column where criteria value is also a range

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    Los Angeles
    MS-Off Ver
    MS365 v2210
    Posts
    21

    SUMIF a column where criteria value is also a range

    Hi Excel Gurus

    I need to use a SUMIF function to total a range of quotes on a table. However, the criterion that I need to use is not a single value, but a range of random quotes that is not in any particular order. Traditional use of a SUMIF function would only allow a single criterion to total values from a range of cells that you want to sum (see "Quote" field).
    But how can I achieve the same thing with a criterion that is a short select range,"D2:D4", (see "Selection" column)? Is there another function I can use to produce the same result?

    This is formula I'm trying to execute, but it failed:
    =SUMIF(A2:A10,D2:D4,B2:B10)

    The result should be $3,600
    Attached Images Attached Images
    Last edited by alwizardus; 10-12-2022 at 07:34 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: SUMIF a column where criteria value is also a range

    Put the SUMIF in side a SUMPRODUCT
    =SUMPRODUCT(SUMIF...)
    Quang PT

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: SUMIF a column where criteria value is also a range

    You can use this array* formula in E9:

    =SUM(SUMIFS(B2:B10,A2:A10,D2:D4))

    *Note that an array formula needs to be confirmed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual Enter.

    Next time, attach a sample Excel workbook, so that we don't have to reproduce your data from scratch before trying things out.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    04-29-2014
    Location
    Los Angeles
    MS-Off Ver
    MS365 v2210
    Posts
    21

    Re: SUMIF a column where criteria value is also a range

    Thanks Pete and Quang, you guys are a lifesaver.
    Pete, noted, I will make sure I upload the file.
    Al

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: SUMIF a column where criteria value is also a range

    You're welcome, Al - thanks for the feedback.

    Pete

+ 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. Replies: 4
    Last Post: 09-04-2019, 05:29 AM
  2. [SOLVED] Sumif(range,criteria,range) issues
    By sly1one in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2019, 11:00 AM
  3. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  4. [SOLVED] Multiple Criteria SUMIF Using Column as Negative Criteria
    By freybe06 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2014, 04:46 PM
  5. Sumif when sum range is in different row/column than criteria
    By inincubus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2014, 02:00 PM
  6. SUMIF when criteria is outside of the range
    By jdohlinger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2012, 04:49 PM
  7. SumIf using date criteria range and one other criteria
    By DJTMONEY in forum Excel General
    Replies: 1
    Last Post: 04-20-2010, 04:10 PM

Tags for this Thread

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