+ Reply to Thread
Results 1 to 6 of 6

COUNTIFS issue - Returns zero matches (possibly wrong formula???)

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    COUNTIFS issue - Returns zero matches (possibly wrong formula???)

    Hello,

    I am in the middle of designing (what will eventually be a in depth) spreadsheet showing a complete sales summary within a date range. The contents of all of the sales is on the first tab from Cognos. Basically I will then have the 2nd tab giving an indepth summary of the complete data from the first tab. One formula is not working as I expected it to.

    Basically I need to give me a nice basic count total of all multiple criteria. I have used the COUNTIFS formula assuming this is correct (feel free to tell me otherwise) and the formula works but just returns a 0 result rather than the correct number.

    Help....

    I need column 'I' to be checked and total the count for all cells that show either 'PC' 'GV' and 'MC'.

    I have attached the early stages of the spreadsheet and the current COUNTIFS formula that has no errors, just the wrong outcome.
    Attached Files Attached Files

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: COUNTIFS issue - Returns zero matches (possibly wrong formula???)

    You can use:
    =SUM(COUNTIF(List_Frame_1!I:I,{"PC","MC","GV"}))

    Your formula is looking for cells where column I is "PC" and is "MC" and is "GV", hence the 0.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: COUNTIFS issue - Returns zero matches (possibly wrong formula???)

    You could count all codes in one go using a Pivot Table.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: COUNTIFS issue - Returns zero matches (possibly wrong formula???)

    =SUM(COUNTIFS(List_Frame_1!I:I,{"PC","MC","GV"}))
    Try this formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: COUNTIFS issue - Returns zero matches (possibly wrong formula???)

    Try with the below array formula, to be entered with ctrl+shift+enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  6. #6
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    Re: COUNTIFS issue - Returns zero matches (possibly wrong formula???)

    Perfect - Added the SUM. Works fine. Makes sense.

    Thanks guys.

+ 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 counting the wrong column
    By hedefinesme in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-14-2014, 11:42 AM
  2. [SOLVED] formula returns wrong result
    By zplugger in forum Excel General
    Replies: 3
    Last Post: 03-12-2014, 01:17 PM
  3. Adding Multiple COUNTIFS into one formula OR am I doing this all wrong???
    By jczapla in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 09-01-2013, 07:57 PM
  4. [SOLVED] Excel 2007 : SUM formula returns wrong value
    By janalyst in forum Excel General
    Replies: 2
    Last Post: 05-09-2012, 04:17 AM
  5. lookup - formula returns wrong value/sum
    By Armitage2k in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-17-2009, 02:43 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