+ Reply to Thread
Results 1 to 4 of 4

Trouble with COUNTIFs

  1. #1
    Registered User
    Join Date
    03-04-2016
    Location
    Newcastle
    MS-Off Ver
    2013
    Posts
    1

    Trouble with COUNTIFs

    Hi there,

    I'm trying to use the COUNTIFS function.

    The following example works fine (it provides a value of 1):

    whyworks.png

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    However this example does not (it provides a value of 0):

    why.png

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The cells that this formula is counting from (columns G to R) are all based on IF functions where na is the false value, but seeing as the first COUNTIFS formula worked I don't see why this should make a difference?

    Any thoughts on what might be happening here?

    Thanks very much.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Trouble with COUNTIFs

    Maybe this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 03-04-2016 at 01:08 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Trouble with COUNTIFs

    I found when you pair up colums in your countifs it causes an issue. it will count the first column of each of the three data ranges together and if it gets a match it will count it. that is why the first one worked. the second one in your example has the data in the first column for range 1 and second column for the red range. it then has data in the first column for the third range. this gave a false result.

    this might work for you
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    if a range has that value it gives it a value of 1 so if all three ranges has that value then the value is 3 then divided by 3 and rounded down. if there is only 2 of 3 that match then the answer will be less than one and it will round to 0.

  4. #4
    Registered User
    Join Date
    02-05-2015
    Location
    Edmonton, Alberta
    MS-Off Ver
    2013
    Posts
    70

    Re: Trouble with COUNTIFs

    if you have "A>B" more than once in each row if this is the case you need to use an or statement

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    this will work great for you it will give you true or false replies. if you want ones and zeros then add -- before the AND
    Last edited by daveisalwayshere; 03-04-2016 at 03:48 PM.

+ 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] Countifs trouble across multiple rows & columns
    By punkaholicgravy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-17-2015, 09:55 AM
  2. Trouble with COUNTIFS
    By HPIMICHAEL02 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-22-2013, 02:25 PM
  3. Trouble with COUNTIFS() formula
    By neoshaakti in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-20-2013, 08:49 AM
  4. COUNTIFS OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  5. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  6. Excel 2007 : Trouble with Countifs
    By jayres14 in forum Excel General
    Replies: 3
    Last Post: 03-09-2012, 09:51 AM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 AM

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