+ Reply to Thread
Results 1 to 7 of 7

Thread: Countif Question

  1. #1
    Registered User
    Join Date
    09-15-2011
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    2

    Countif Question

    Need help with a COUNTIF function to identify if the end of a number ends with a specific number.... e.g.

    Looking to count the number of times the numbers below end with a 9. Tried the COUNTIF(Range,"*9") and a few other variations, but I cannot seem to get it to work.

    12.55
    12.65
    12.75
    12.89
    12.59
    11.39
    10.58
    13.57
    14.59

    Any suggestions?

    Thanks
    Last edited by NBVC; 09-15-2011 at 03:56 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Countif Question

    How about =SUM(INDEX(--(RIGHT(Range,1)="9"),0))

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Countif Question

    Perhaps something like:

    =SUMPRODUCT(--(ROUND(A1:A9,1)-0.01=A1:A9))
    Last edited by NBVC; 09-15-2011 at 11:44 AM.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Countif Question

    Somehow, Andrew-R's post got separated into it's own thread I re-merged it back.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & read 2007
    Posts
    15,979

    Re: Countif Question

    Your post does not comply with Rule 5 of our Forum RULES. We have Seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one forum.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,957

    Re: Countif Question

    Quote Originally Posted by NBVC View Post
    Somehow, Andrew-R's post got separated into it's own thread I re-merged it back.
    Maybe I just wanted to ask the world what they thought about my formula.

    My pert, **** little formula.

  7. #7
    Registered User
    Join Date
    09-15-2011
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Countif Question

    That worked. Thanks very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0