+ Reply to Thread
Results 1 to 6 of 6

SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria

  1. #1
    Registered User
    Join Date
    02-11-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    3

    SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria

    Hey Guys!
    I'm trying to count multiple ranges that contain a specific letter & another set of ranges contain a letter into one specific cell. BUT when I add multiple ranges, its sending back #VALUE!. This is what i have for the 1 range, but need to to read off of multiple ranges.
    =SUMPRODUCT(--($C$4:$C$30="cg"),--($B$4:$B$30="P"))

    This is what I need:
    if ranges C4:C30, F4:F30, I4:I30, L4:L30, O4:O30, R4:R30, U4:U30 contain "CG"
    AND
    ranges b4:B30, e4:E30, h4:H30, k4:K30, n4:N30, q4:Q30, t4:T30 contain "P"
    THEN
    the count is 4 (in cell Z21)
    Attached Files Attached Files
    Last edited by Iamcourtdz; 02-11-2020 at 04:55 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria

    Here's one way:
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria

    Z21=sumproduct(($c$4:$u$9=index($x$5:$x$12,match($w21,$w$5:$w$12,0)))*($b$4:$t$9=z$20))

  4. #4
    Registered User
    Join Date
    02-11-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    3

    Re: SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria

    This worked perfectly, thank you.

  5. #5
    Registered User
    Join Date
    02-11-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    3

    Re: SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria

    Is there a way to exclude blank from the ranges in the total count? For example: If there is a blank in range B4:B30, I'd like it to be excluded from the total count.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: SUMIFS, COUNTIFS, & SUMPRODUCT - With multiple cell ranges & criteria

    I do not understand the last request (post #5). If I delete the contents of B4 then cell Z21 displays 3 so it would appear that CARACALLA's formula is already fulfilling the request.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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/COUNTIFS for multiple conditions/ranges
    By BoudeyCall in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-31-2017, 04:35 PM
  2. SUMIFS/COUNTIFS for multiple conditions/ranges
    By BoudeyCall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2017, 09:11 PM
  3. [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
  4. [SOLVED] Countifs and Sumifs for multiple criteria
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2015, 02:48 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. SUMIFS or SUMPRODUCT with multiple criteria including date ranges
    By baxcat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2013, 09:40 AM
  7. Multiple conditions - SumProduct, SumIfs, CountIfs - Which do I need?
    By Carcophan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2013, 01:43 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