+ Reply to Thread
Results 1 to 2 of 2

COUNTIFS breaking when used with multiple column range

  1. #1
    Registered User
    Join Date
    08-18-2020
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    1

    COUNTIFS breaking when used with multiple column range

    Hi All,

    This one is confounding me.

    I have a sheet with four columns: Date; test 1; test 2; test 3

    The date column contains dates... all cells in the test columns contain either "safe", "at-risk" or "-"

    I am trying to make a COUNTIF formula that counts the total quantity of "safe" occurrences in a date range, and a second formula that counts the total quantity of "at-risk" occurrences in a date range.

    My COUNTIF works if I the criteria are date> X and date <= Y and a B:B (or other single column) = "safe", but when I try to count across all the test columns (B:D) I end up with a #VALUE error.

    In the attached sheet, you can see the multi column count working in G2, the single column formula working in H2 and the combination failing in I2.

    This one has me stumped and any help would be much appreciated!
    Attached Files Attached Files
    Last edited by HallwayOrchard; 08-18-2020 at 11:08 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,748

    Re: COUNTIFS breaking when used with multiple column range

    Welcome to the forum.

    You'll need to switch to SUMPRODUCT:

    =SUMPRODUCT(($A2:$A52>I1)*($A2:$A52<=J1)*(B2:C52="safe"))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] Create Multiple Row from a Single Row breaking down a column
    By aasulman in forum Excel General
    Replies: 1
    Last Post: 06-14-2020, 10:15 PM
  2. [SOLVED] Query with COUNTIFS across a range vs a column
    By galvinpaddy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2018, 12:45 PM
  3. Countif on multiple ranges - breaking up the range
    By slakhani in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 02-16-2018, 09:24 AM
  4. Replies: 2
    Last Post: 03-19-2014, 11:47 AM
  5. Replies: 1
    Last Post: 08-20-2013, 03:26 PM
  6. COUNTIFS with Multiple Criteria in One Range
    By mphillips in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2013, 02:43 PM
  7. Countifs with multiple criteria in a single range
    By Wolfpackfan320 in forum Excel General
    Replies: 1
    Last Post: 02-27-2012, 04:54 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