+ Reply to Thread
Results 1 to 4 of 4

Countifs on multiple columns & criteria

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Countifs on multiple columns & criteria

    Need to calculate occurrence of cells with zero value, over day & hour. Also need to find occurrence of values which are greater than zero.

    Data are values in minute by minute and over 30 dates period, if needed hour formula column can be added if minutes cannot be converted into hour.

    have attached file with expected result.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: Countifs on multiple columns & criteria

    Enter this in B2 for 0 values:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Enter this for >0 values:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But first in hours (A column) add 24 (after 23) to get whole day.

  3. #3
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Re: Countifs on multiple columns & criteria

    Many thanks...

    formula u posted has now able to calculate the desired result...

    your suggestion regarding for calculating hour 23, i have modified & add >A2 specifically in 23 hour.

    =SUMPRODUCT((data!$B$1:$AD$1=B$1)*(data!$A$3:$A$1442>=$A25/24)*(data!$A$3:$A$1442>$A2/24)*(data!$B$3:$AD$1442=0))

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: Countifs on multiple columns & criteria

    That way you have one formula different than other so you lose consistency.
    You can do that but I would rather fix input table.
    You can hide that row or format font with white number.
    It doesn't need to be visible.
    It's just there for calculation.

    But yes, your formula will work too.

+ 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 with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  2. Countifs Help with multiple columns in one criteria
    By itobon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2015, 02:03 PM
  3. [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
  4. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  5. [SOLVED] Countifs multiple criteria, and 1 criteria Less than & Greater than
    By david gonzalez in forum Excel General
    Replies: 4
    Last Post: 06-30-2014, 10:33 PM
  6. [SOLVED] Countifs with multiple criteria and one criteria has a list of names
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 05:25 PM
  7. Replies: 0
    Last Post: 07-27-2011, 01:00 AM

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