+ Reply to Thread
Results 1 to 7 of 7

countifs cells which contain certain letters

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    87

    countifs cells which contain certain letters

    Hello:

    I would like to count how many times a cell in the range q3:q13 starts with 'R'. Is this possible to do with countifs? (I'm using countifs because I want to filter the data more). I was thinking of using the search() function, but I do not believe that this function is compatible with countifs. Do I have to use sumproduct?

    I understand that this doesn't work, but this is what I'm trying to accomplish: =countifs(c3:c13,$A3,q3:q13,search("r",q3:q13))

    Thank you.

    Adam
    Last edited by hektisk; 02-03-2011 at 09:53 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: countifs cells which contain certain letters

    Hi Adam,

    Are you looking for...

    =COUNTIF(Q3:Q13,"R*")
    HTH
    Regards, Jeff

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: countifs cells which contain certain letters

    Try this
    =COUNTIF(q1:q8,"r?")

  4. #4
    Registered User
    Join Date
    01-13-2011
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: countifs cells which contain certain letters

    I am! It's almost too simple. Thank you!

    Quote Originally Posted by jeffreybrown View Post
    Hi Adam,

    Are you looking for...

    =COUNTIF(Q3:Q13,"R*")

  5. #5
    Registered User
    Join Date
    06-06-2016
    Location
    Ohio, USA
    MS-Off Ver
    2013
    Posts
    5

    Re: countifs cells which contain certain letters

    How would you alter this to count all cells that contain "R"? I ran this formula as answered and got an number but then noticed other cells contained the letter I was running the formula for and need to make sure it's a true count.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: countifs cells which contain certain letters

    Maybe this?

    =COUNTIF(Q3:Q13,"*R*")
    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.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: countifs cells which contain certain letters

    hooper12345 welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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