+ Reply to Thread
Results 1 to 11 of 11

COUNTIFS returns 0

  1. #1
    Registered User
    Join Date
    08-30-2019
    Location
    Atlanta
    MS-Off Ver
    Office 365
    Posts
    5

    Exclamation COUNTIFS returns 0

    Hi everyone,

    Im having this issue using COUNTIFS.. im tryinf to count the number of individuals on the P2 tab that are Young and Male that have a higher new GPA than old GPA (young and male individuals are those in the P2 tab that are 49 years or younger and male)

    Im using this formula =COUNTIFS('P2'!E2:E101,"MALE", 'P2'!F2:F101, "<=49", 'P2'!N2:N101,"TRUE") but for some reason i keep getting zero as a result when it should be 15. Could someone help me figure out what im doing wrong?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,421

    Re: COUNTIFS returns 0

    Welcome to the forum.

    Change the TRUE/FALSE formula to this:

    =M2>L2
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: COUNTIFS returns 0

    Copied and pasted your data into a new worksheet on my iPad and your formula returns 15 as it stands.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    08-30-2019
    Location
    Atlanta
    MS-Off Ver
    Office 365
    Posts
    5

    Re: COUNTIFS returns 0

    I cannot change it because for that specific column (Column N) i have to complete it by taking a value of TRUE if the new GPA is higher than the old GPA and a value of FALSE otherwise.

  5. #5
    Registered User
    Join Date
    08-30-2019
    Location
    Atlanta
    MS-Off Ver
    Office 365
    Posts
    5

    Re: COUNTIFS returns 0

    Quote Originally Posted by TMS View Post
    Copied and pasted your data into a new worksheet on my iPad and your formula returns 15 as it stands.
    So the formula is correct? I keep getting zero

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,776

    Re: COUNTIFS returns 0

    try

    N2=IF(M2>L2,TRUE,FALSE) copy down

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: COUNTIFS returns 0

    Looks ok to me. Can't check it on a PC as my laptop has just died.

    Next best thing, I copied the data and pasted into Excel on my iPad. Maybe the numbers are not numeric? Copying them might have sorted that if it's the problem.

    Or, maybe try taking the quotes off "TRUE", that is, just TRUE.

  8. #8
    Registered User
    Join Date
    08-30-2019
    Location
    Atlanta
    MS-Off Ver
    Office 365
    Posts
    5

    Re: COUNTIFS returns 0

    Quote Originally Posted by CARACALLA View Post
    try

    N2=IF(M2>L2,TRUE,FALSE) copy down
    It worked!! Thank you so much!!! i was going crazy trying to figure out what i was doing wrong

  9. #9
    Registered User
    Join Date
    08-30-2019
    Location
    Atlanta
    MS-Off Ver
    Office 365
    Posts
    5

    Re: COUNTIFS returns 0

    Quote Originally Posted by TMS View Post
    Looks ok to me. Can't check it on a PC as my laptop has just died.

    Next best thing, I copied the data and pasted into Excel on my iPad. Maybe the numbers are not numeric? Copying them might have sorted that if it's the problem.

    Or, maybe try taking the quotes off "TRUE", that is, just TRUE.
    It was the quotes. Thank you!

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: COUNTIFS returns 0

    You're welcome.

    Note that
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    gives the same result as
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    (credit to Ali in post #2) but is more verbose

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,421

    Re: COUNTIFS returns 0

    Quote Originally Posted by denisse030 View Post
    I cannot change it because for that specific column (Column N) i have to complete it by taking a value of TRUE if the new GPA is higher than the old GPA and a value of FALSE otherwise.
    You clearly didn't even try it - shame, because it would have solved the issue for you immediately.

+ 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 Formula returns #Value error
    By npett in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2018, 10:50 AM
  2. countifs returns only zero
    By IsabellaLearning in forum Excel General
    Replies: 8
    Last Post: 02-27-2018, 07:27 PM
  3. [SOLVED] 3 Criteria COUNTIFS returns as ZERO
    By jucavicc in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-16-2017, 07:25 PM
  4. COUNTIFS issue - Returns zero matches (possibly wrong formula???)
    By sx200n in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2014, 08:09 AM
  5. Using two ranges as ONE RANGE in countifs with conditions. Formula returns an error
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2011, 08:20 PM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. Countifs not counting, returns #value
    By Qualo_Jinn in forum Excel General
    Replies: 3
    Last Post: 12-09-2011, 04:13 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