+ Reply to Thread
Results 1 to 7 of 7

Why is the COUNTIFS function not working?

  1. #1
    Registered User
    Join Date
    08-27-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    10

    Why is the COUNTIFS function not working?

    Hi,

    I have set the following formulas:

    =COUNTIFS($C$2:$C$351,"*Kellogg",$G$2:$G$351,"*CT")

    I want to be able to count only if both the word Kellogg and CT are present.

    I have attached the workbook. Does it matter than im working from a drop down list?

    Any help is much appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    32,359

    Re: Why is the COUNTIFS function not working?

    Probably missing something but Kellogg isn't in column C and I canít see CT anywhere.

    And no, it doesn't make any difference.
    Trevor Shuttleworth - Excel Aid

    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


  3. #3
    Registered User
    Join Date
    08-27-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    10

    Re: Why is the COUNTIFS function not working?

    Thanks for the reply. I have options on my drop downs for DP and CT. The same formula is in for each, expect the different wildcard name. CT works and DP doesn't?

    Works: =COUNTIFS($C$2:$C$351,"*Kellogg",$G$2:$G$351,"*CT")

    Doesn't work: =COUNTIFS($C$2:$C$351,"*Kellogg",$G$2:$G$351,"*DP")

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    32,359

    Re: Why is the COUNTIFS function not working?

    I'd try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    note the trailing asterisk

  5. #5
    Registered User
    Join Date
    08-27-2020
    Location
    London
    MS-Off Ver
    365
    Posts
    10

    Re: Why is the COUNTIFS function not working?

    Brilliant. Thank you very much.
    Last edited by jonnyboyb; 08-29-2020 at 01:56 AM.

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    2,888

    Re: Why is the COUNTIFS function not working?

    Look in sheet1 column "C" & "G" their is no any data apart from "Higham" & "DP Dolly"


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

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

    Re: Why is the COUNTIFS function not working?

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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 not working for 2 values, but PIVOT is working fine
    By chaiyya345 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2019, 05:44 AM
  2. Replies: 42
    Last Post: 06-15-2016, 11:07 AM
  3. [SOLVED] countifs not working
    By stephme55 in forum Excel General
    Replies: 2
    Last Post: 05-17-2016, 01:02 PM
  4. Countifs not working
    By cardonas in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2016, 01:32 PM
  5. (VBA) COUNTIFS using MID not working
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2015, 08:11 AM
  6. [SOLVED] countifs working on extended ranges and different sheets not working
    By etaf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 02:23 PM
  7. COUNTIFS function not working
    By d_mack in forum Excel General
    Replies: 3
    Last Post: 08-26-2010, 02:25 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