+ Reply to Thread
Results 1 to 9 of 9

Countif function did not return correct values

  1. #1
    Registered User
    Join Date
    12-09-2016
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    7

    Countif function did not return correct values

    Post revised (refer to 04:41am post below). Apologies for any inconvenience caused.
    Attached Files Attached Files
    Last edited by ceishue; 12-10-2016 at 05:59 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Countif function did not return correct values

    The COUNTIFS are correct.

    It's not clear to me why you say the count of "Talks by ITEs/ JCs/ Polys" for instance is 22. That may be the number in J253, but there are only 19.

    There's also a typo with one of the "Learning Journeys to ITEs/ JCs/ Polys" records which is spelled differently in C192, i.e. "L earning Journeys to ITEs/ JCs/ Polys" with a space after the first 'L'
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-09-2016
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    7

    Re: Countif function did not return correct values

    Thanks Richard, for your input! I re-did the sample doc as attached and still can't tally the totals for D19 & E19 (removed dummy count due to human error) to 231 (paxs) unfortunately.
    Attached Files Attached Files

  4. #4
    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
    80,719

    Re: Countif function did not return correct values

    If you require further help with this, please remove the SOLVED tag from the header of your opening post.
    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.

  5. #5
    Registered User
    Join Date
    12-09-2016
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    7

    Re: Countif function did not return correct values

    oh ok

    To any one who can help, I was too hasty to conclude the issue earlier. After redoing the doc as attached, I still can't get the total in E19 to tally as well as to tally the totals for C19 and H19.

    Thanks!

    ------------------
    Separately...

    Having surveyed participants on 13 preferred work industries, results were returned in a text string in a cell per pax, eg:

    Built Environment (e.g. construction, landscaping), Business (e.g. entrepreneurship), Law, Public Safety and Security, Entertainment & Arts (4 industries chosen)

    Have used countif, eg. =countif(range,"*Business*") to obtain the total occurrences of each industry which adds up to an overall total. Wonder if there is another formula to do so, for me to verify individual/overall totals?
    Attached Files Attached Files
    Last edited by ceishue; 12-10-2016 at 05:54 AM.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Countif function did not return correct values

    That's because at least one of your descriptions on the Group2 sheet isn't present on sheet 2.
    i.e. " eCareers portal*"

    Note the space characters after the " character

    I can't help thinking you'd be better advised to re-organise your data into a normalised table that a Pivot Table could use and analyse the data with a Pivot Table.

  7. #7
    Registered User
    Join Date
    12-09-2016
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    7

    Re: Countif function did not return correct values

    Hi Richard, thanks for your input once again. I did spot the typo and revised it in the latest attachment (04:41am) so only the '2ng Ranked' total is not tallying up to 231 (230 instead) now. When I cross-checked the totals throughout 1st to 3rd rank for each item against that of the Overall Column, some values did not tally too.

    I'm not that familiar with Pivot tables and probably have to look it u

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Countif function did not return correct values

    Hi,

    The basic problem is that in some places you're counting a phrase that doesn't exist in one of the ranking columns.
    For instance B91 contains "work shadowing, but none of the C91:E91 contain that phrase
    Similarly with 'Talks by school' which exists in B211 but not in C211:E211

    I've not checked them all but no doubt there are similar differences elsewhere

    The moral is to compare like with like. You should also use the wildcard character carefully.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,176

    Re: Countif function did not return correct values

    See attached:

    Typos!

+ 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. Match function won't return correct row number
    By Shaffness in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2016, 03:28 PM
  2. [SOLVED] Using if Function to return correct value against two critea
    By hamish100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2015, 11:14 AM
  3. Frequency function to correct ranking instead of countif
    By Scottlarock in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-03-2013, 07:40 PM
  4. [SOLVED] Correct Syntax for Countif between values.
    By JO505 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2013, 03:37 PM
  5. Looking for a correct COUNTIF function
    By Smit22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-26-2012, 02:02 PM
  6. Trying to return correct values using INDEX and MATCH
    By wayneknox01 in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 11:31 AM
  7. [SOLVED] Using MATCH function does not return correct answer
    By LindaBabe54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2006, 09:58 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