+ Reply to Thread
Results 1 to 5 of 5

COUNTIFS SUMIFS with a criteria that is a RANGE

  1. #1
    Registered User
    Join Date
    12-04-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    79

    COUNTIFS SUMIFS with a criteria that is a RANGE

    Is it possible / how do you navigate:

    COUNTIFS or SUMIFS in a situation where the criteria is actually a range of options.
    Ie. The range for the condition is: A3:A300
    But the criteria is ‘John, Peter OR Simon’
    OR the criteria is ‘D3, D4 OR D5’.

    It could be done by doing a COUNTIF with a single criteria and then doing a + with the next COUNTIF formula. However if you expand this it can result in a massive formula and I suspect there I a better way of doing it.

    All advice most welcome.

    Thank you

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: COUNTIFS SUMIFS with a criteria that is a RANGE

    Like this maybe to count: =SUMPRODUCT(COUNTIF(A3:A300,{"John";"Peter"; "Simon"}))
    and to sum =Sumproduct((B3:B300)*(A3:A300={"John";"Peter"; "Simon"}))
    Click the * to say thanks.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,489

    Re: COUNTIFS SUMIFS with a criteria that is a RANGE

    have a look at this explanation page how to combine sum and sumif with multiple criteria

    https://www.extendoffice.com/documen...column.html#a1

  4. #4
    Registered User
    Join Date
    12-04-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    79

    Re: COUNTIFS SUMIFS with a criteria that is a RANGE

    Both are useful, thank you.
    IS there a way to replace "John";"Peter";"Simon" with "D3:D5" as the range of criteria?
    Thanks.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,968

    Re: COUNTIFS SUMIFS with a criteria that is a RANGE

    =SUM(COUNTIF(A3:A300,D3:D5)

    array-entered with Ctrl+Shift+Enter.
    Everyone who confuses correlation and causation ends up dead.

+ 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. Adding corresponding values of a date range (SUMIFS & COUNTIFS)
    By Apol21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-29-2016, 12:32 PM
  2. [SOLVED] Rules for Multiple Criteria SUMIFS/COUNTIFS and Arrays
    By cmbh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-12-2016, 08:22 PM
  3. [SOLVED] Countifs and Sumifs for multiple criteria
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2015, 02:48 PM
  4. [SOLVED] Countifs and sumifs using Name Range
    By anh03 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-23-2015, 11:19 PM
  5. [SOLVED] SUMIFS/COUNTIFS array function question (multiple criteria)
    By akamenov88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2015, 07:08 PM
  6. [SOLVED] I can countifs a range but not sumifs
    By port in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2014, 07:06 PM
  7. Countifs and Sumifs VBA code with criterias between 2 date range
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2013, 07:08 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