+ Reply to Thread
Results 1 to 9 of 9

COUNTIF Problems

  1. #1
    Registered User
    Join Date
    11-22-2015
    Location
    Hong Kong
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    4

    COUNTIF Problems

    Hi all!

    I would like to know how to use the COUNTIF Formula to get the result.

    Thank you very much!
    Attached Files Attached Files
    Last edited by hellomichael; 11-23-2015 at 08:30 AM.

  2. #2
    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,617

    Re: COUNTIF Problems

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    dragged down


    Regards, TMS
    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


  3. #3
    Registered User
    Join Date
    11-22-2015
    Location
    Hong Kong
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    4

    Re: COUNTIF Problems

    Quote Originally Posted by TMS View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    dragged down


    Regards, TMS
    Thank you for your quick reply.

    But the result shows B11=4, B12=5, B1=6 if I use the above formula.

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

    Re: COUNTIF Problems

    B2=IF(A1=A2,SUM(B1,1),1)
    Please Login or Register  to view this content.
    Tryt this and copy towards down
    Samba

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

  5. #5
    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,617

    Re: COUNTIF Problems

    OK, different approach:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS

  6. #6
    Registered User
    Join Date
    11-22-2015
    Location
    Hong Kong
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    4

    Re: COUNTIF Problems

    Thank you both the above two replies.

    They both works!

  7. #7
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: COUNTIF Problems

    Not sure what you wish to count. If you want to know how many times the value 3 is found in the range A2:A18 try

    Please Login or Register  to view this content.
    and to find the number of occurence for 2 use A5 instead of A2 in the formula.

    Alf

  8. #8
    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,617

    Re: COUNTIF Problems

    No, he's looking for something like an index of each block of numbers. A simple COUNTIF doesn't give him what he wants.

    Regards, TMS

  9. #9
    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,617

    Re: COUNTIF Problems

    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] Countif problems
    By m.rigby55 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 06:02 AM
  2. Excel 2007 : COUNTIF Problems
    By aaron1976 in forum Excel General
    Replies: 2
    Last Post: 01-27-2012, 09:37 PM
  3. CountIf Problems
    By kennedyJason in forum Excel General
    Replies: 3
    Last Post: 07-12-2011, 09:53 AM
  4. countif problems
    By statenja in forum Excel General
    Replies: 3
    Last Post: 06-09-2011, 03:13 PM
  5. countif problems...
    By moshmoshon in forum Excel General
    Replies: 2
    Last Post: 07-28-2007, 02:01 AM
  6. =COUNTIF problems,
    By ELLICOTT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2007, 11:23 AM
  7. Problems With =COUNTIF()
    By Kenshyou in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-25-2006, 10:50 AM
  8. COUNTIF Problems
    By PW11111 in forum Excel General
    Replies: 1
    Last Post: 07-25-2005, 08:05 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