+ Reply to Thread
Results 1 to 6 of 6

Countif / not giving results I require

  1. #1
    Registered User
    Join Date
    01-12-2017
    Location
    Guernsey
    MS-Off Ver
    2021 Plus
    Posts
    3

    Post Countif / not giving results I require

    I wish to count the number of times 2 names appear in in a column.

    I attach a small table showing what I require but the wrong result I keep getting.

    Attached file Test shows data etc
    Attached Files Attached Files
    Last edited by Ladurande; 04-29-2023 at 10:58 AM.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: Countif / not giving results I require

    Welcome to the forum.

    Can I confirm first that your Excel is the old 2010 version?
    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
    Registered User
    Join Date
    01-12-2017
    Location
    Guernsey
    MS-Off Ver
    2021 Plus
    Posts
    3

    Re: Countif / not giving results I require

    No it's Excel 2021

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: Countif / not giving results I require

    OK - please update your forum profile.

    In C23 copied across:

    =IF(COUNTA(FILTER(Table1[Column1],(Table1[Column1]="Alf")+(Table1[Column1]="Andy")))>1,1,0)
    Attached Files Attached Files
    Last edited by AliGW; 04-29-2023 at 09:13 AM. Reason: Suggestion made.

  5. #5
    Registered User
    Join Date
    01-12-2017
    Location
    Guernsey
    MS-Off Ver
    2021 Plus
    Posts
    3

    Re: Countif / not giving results I require

    Thanks Ali works fine. Was using formula =Countif(C17:c20,"alf")+countif(c17:20,"Andy2).

    That worked for the column when both names were there but in others would give a tue if only 1 name wa in that column.

    Once again thanks can now get my golf schedule sorted !!!

  6. #6
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,434

    Re: Countif / not giving results I require

    You still need to update your forum profile to Excel 2021, please.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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] Index/match giving correct results, wrong results & #N/A results...sometimes
    By mrteater in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2019, 10:41 AM
  2. [SOLVED] VBA giving inconsistent results
    By duffynmu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2017, 06:09 PM
  3. [SOLVED] IF(OR) Statement not giving results
    By LaoDa in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-04-2016, 07:01 AM
  4. Replies: 8
    Last Post: 06-07-2016, 11:28 AM
  5. [SOLVED] The code for sum is not giving correct output, help require
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2014, 06:23 PM
  6. [SOLVED] Rank countif with index match is not giving top results
    By amartin575 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2014, 10:17 PM
  7. COUNTIF giving wrong results
    By Excel_vba in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2013, 04:17 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