+ Reply to Thread
Results 1 to 6 of 6

COUNTIFS - Blank cells

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    142

    COUNTIFS - Blank cells

    Hi,

    I'm looking for a solution to my COUNTIFS formula. Right now it has x3 Criteria Range but I need a 4th, the first 2 Criteria Range are constant but the 3rd or 4th should be variable. I'd like the formula to say... COUNTIFS, Criteria Range 1, 2 & 3 IF Criteria Range 4 is blank, IF Criteria Range 4 is not blank then COUNTIFS, Criteria Range 1, 2 & 4.

    Is this achievable?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,194

    Re: COUNTIFS - Blank cells

    what is criteria 4?

  3. #3
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    142
    Quote Originally Posted by belinda200 View Post
    what is criteria 4?
    It’s a date, criteria 3 and 4 are both dates.

  4. #4
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    142
    Quote Originally Posted by belinda200 View Post
    what is criteria 4?
    To be precise, it’s a month number rather than a date.

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,278

    Re: COUNTIFS - Blank cells

    You don't say, but I'm assuming the Date you're referring to for Criteria 4 is "Month" in Table4.

    Can you just add another column to Table4 (called "Month3", say), and put in the formula:
    =IF([@MONTH2]="",[MONTH],[@MONTH2])
    and then H20, you could change your reference to "Month2" to "Month3"
    =COUNTIFS(Table4[WHERE],Table5[[#Headers],[WEBSITE]],Table4[STATUS],[@STATUS],Table4[Month3],[@MONTH])

  6. #6
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2403 Build 16.0.17425.20176) 64-bit
    Posts
    142

    Re: COUNTIFS - Blank cells

    Quote Originally Posted by Gregb11 View Post
    You don't say, but I'm assuming the Date you're referring to for Criteria 4 is "Month" in Table4.

    Can you just add another column to Table4 (called "Month3", say), and put in the formula:
    =IF([@MONTH2]="",[MONTH],[@MONTH2])
    and then H20, you could change your reference to "Month2" to "Month3"
    =COUNTIFS(Table4[WHERE],Table5[[#Headers],[WEBSITE]],Table4[STATUS],[@STATUS],Table4[Month3],[@MONTH])
    So simple... thank you very much.

+ 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 and offset to find blank cells
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-02-2019, 07:41 PM
  2. [SOLVED] CountIfs for not blank cells with condition
    By mutzie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-17-2019, 08:17 PM
  3. CountIFS - ignore blank cells and cells with text in
    By whitebits in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2018, 12:43 AM
  4. [SOLVED] COUNTIFS to count blank cells as a criteria
    By Cortlyn in forum Excel General
    Replies: 3
    Last Post: 07-15-2017, 05:36 PM
  5. Countifs Returning Value Error with Blank Cells
    By Troy73 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-13-2017, 08:44 AM
  6. [SOLVED] COUNTIFS for non-blank cells
    By DSwartz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2013, 03:39 PM
  7. Countifs should return blank results for blank row of cells
    By Groovicles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-29-2013, 06:20 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