+ Reply to Thread
Results 1 to 3 of 3

IF with nested SUM COUNTIFs with dates

  1. #1
    Registered User
    Join Date
    11-16-2017
    Location
    CT
    MS-Off Ver
    2016
    Posts
    9

    IF with nested SUM COUNTIFs with dates

    Hello,

    I'm trying to make a formula that will check 3 columns for 3 different criteria. The first column that should be checked first has the criteria of dates between a date range, ie. will the date in a cell in column A fall in a certain month. The second and third column hold data that is to be counted if it also falls within a criteria. Second column is a measure of temperature (70 degrees +or- 10) and the third is a measure of humidity (simple check if its over 70%). I have been able to create a formula that does this but I am having difficulty getting it to display blank instead of 0 if there is no data. The way I want the formula to display is if there are no entries in the date column for for a certain month (this scenario would be for months that havent happened yet) it should display blank instead of 0. For months where there is an entry in the date column but none in the temperature or humidity column (months that have happened but have not had any days where temp or humidity has exceeded the allowed values) it should display 0. This data is then pulled into a cell that displays the % of days in the month where it was within acceptable values and then this data is pulled to another workbook where it is a metric that is tracked, and I don't want it to display anything for months that haven't happened yet.

    Formula before attempting to display blank : (months january to april still have this formula)

    Please Login or Register  to view this content.
    As you can see, the second formula is displaying blank no matter what. (months may to december)

    exc.PNG

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: IF with nested SUM COUNTIFs with dates

    Try another COUNTIFS for the IF part, e.g.

    =IF(COUNTIFS(A5:A64,">=4/1/2017",A5:A64,"<5/01/2017"),SUM(COUNTIFS(B5:B64,{">80","<60"},A5:A64,">=4/1/2017",A5:A64,"<5/01/2017")),"")
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-16-2017
    Location
    CT
    MS-Off Ver
    2016
    Posts
    9

    Re: IF with nested SUM COUNTIFs with dates

    Thanks, works perfectly!

+ 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 counting dates with concurrents dates as one
    By tom8635 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2015, 12:38 PM
  2. Help with formula OFFSET nested in COUNTIFS
    By mkagamemnon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2015, 05:05 PM
  3. Nested Countifs
    By scain in forum Excel General
    Replies: 1
    Last Post: 06-26-2012, 09:15 AM
  4. COUNTIFS with nested difference calculation question
    By Task15 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2012, 07:59 PM
  5. OR() nested in COUNTIFS()
    By Hillargi in forum Excel General
    Replies: 14
    Last Post: 12-02-2011, 12:24 PM
  6. Replies: 3
    Last Post: 07-19-2010, 01:02 PM
  7. Problem.... Nested countifs?
    By Nick in forum Excel General
    Replies: 7
    Last Post: 04-03-2005, 05:06 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