+ Reply to Thread
Results 1 to 3 of 3

COUNTIFS when looking for two criteria but one of the criteria is in a range

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    COUNTIFS when looking for two criteria but one of the criteria is in a range

    On the attached example, I want to count the value "h" in each row (I12:NI12) for each drivername (column D)

    However, I only want to count the bank holidays which are highlighted yellow. My list of bank holidays is in A12:A28.

    I could just use a COUNTIFS if both criteria were fixed but I'm not sure how to adapt the formula where I'm looking for one value from a range in another range of cells?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,189

    Re: COUNTIFS when looking for two criteria but one of the criteria is in a range

    Try

    =SUM(COUNTIFS($I12:$NI12,"h",$I$11:$NI$11,$A$12:$A$27))

    Enter with Ctrl+Shift+Enter (array formula)

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    sheffield
    MS-Off Ver
    Excel 2013
    Posts
    210

    Re: COUNTIFS when looking for two criteria but one of the criteria is in a range

    Fantastic - much appreciated thanks.

+ 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. Countifs: Multiple Criteria in Same Range with Other Criteria
    By ejpal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-14-2019, 07:16 AM
  2. [SOLVED] Countifs one criteria range multi dynamic cells as criteria
    By brake in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 03-10-2018, 08:00 AM
  3. [SOLVED] COUNTIFS with Multiple Text Criteria in Same Criteria Range
    By xl2016 in forum Excel General
    Replies: 5
    Last Post: 06-18-2017, 05:00 AM
  4. Countifs with multiple criteria in single criteria range
    By SUHAS KARHADKAR in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-01-2016, 10:55 AM
  5. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  6. [SOLVED] COUNTIFS with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2015, 01:04 PM
  7. [SOLVED] COUNTIFS with many criteria in same range
    By asterobelix in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2014, 12:10 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