+ Reply to Thread
Results 1 to 5 of 5

Countifs function, ignoring those blanks

  1. #1
    Registered User
    Join Date
    01-16-2015
    Location
    canada
    MS-Off Ver
    2013
    Posts
    3

    Countifs function, ignoring those blanks

    I've had an issue plaguing me and it wasn't until I created this test scenario is where I realized that when using a countifs function, once blanks are introduced it affects the countifs results?

    First create 3 ranges, each range with a series of different values.

    ie.
    range1 = A,A,"",B,B,B,C
    range2 = Dog,Dog,Dog,Cat,Cat,Cat,Cat,Cat
    range3 = alive,sick,"",lost,alive,alive,dead,lost

    Now if I use a countifs function.

    =countifs(range1,"A",range2,"Cat",range3,"<>alive")

    This equals 2


    If I remove an "alive" and make the cells blank. It returns 3 for one and 4 for both


    What can I do to have the countifs to ignore the blanks after it has determined a count? or is there another way?

  2. #2
    Registered User
    Join Date
    01-16-2015
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    16

    Re: Countifs function, ignoring those blanks

    Can you post a copy of your file with the sample data?

  3. #3
    Registered User
    Join Date
    01-16-2015
    Location
    canada
    MS-Off Ver
    2013
    Posts
    3

    Re: Countifs function, ignoring those blanks

    Thanks for the speedy reply. Here is my example workbook.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-16-2015
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    16

    Re: Countifs function, ignoring those blanks

    Thanks for adding the file... try this

    =COUNTIFS(A9:A16,E7,B9:B16,E6,C9:C16,"<>"&"alive",C9:C16,"<>"&"")

  5. #5
    Registered User
    Join Date
    01-16-2015
    Location
    canada
    MS-Off Ver
    2013
    Posts
    3

    Re: Countifs function, ignoring those blanks

    I can't believe that passed me by and thank you so much. It works and no more "it has to be so simple headache".

    I did get it working though using and array sum formula and perform multipliers for each conditional but this was exactly what I needed and saves me some excess processing power.

+ 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. Function to Choose and List Values ignoring blanks and erros
    By k2i2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 11:10 AM
  2. [SOLVED] Ignoring blanks (again)
    By jswainson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-12-2012, 07:47 AM
  3. [SOLVED] Ignoring blanks
    By jswainson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-30-2012, 10:28 AM
  4. [SOLVED] Ignoring blanks
    By jswainson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-09-2012, 02:14 PM
  5. Ignoring blanks
    By exsam21 in forum Excel General
    Replies: 2
    Last Post: 01-18-2006, 01:25 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