+ Reply to Thread
Results 1 to 4 of 4

Excel formula to count cells with specific text

  1. #1
    Registered User
    Join Date
    02-26-2009
    Location
    STL MO USA
    MS-Off Ver
    Office 2007
    Posts
    8

    Question Excel formula to count cells with specific text

    Greetings

    Please Login or Register  to view this content.

    This formula counts "1" every time the string "K" is found in a range of rows which also contain another cell value "9P to 9A". Works great as far as I've found, although, it's probably a little complicated.

    Now I also want this formula to search for "Km" in addition to "K".

    I tried these and they didn't work:
    Please Login or Register  to view this content.

    I've attached an edited version of the workbook.

    Can someone point me in the right direction?

    Thank you!
    Attached Files Attached Files
    Last edited by timtrace; 04-06-2011 at 12:32 AM. Reason: Removed screen cap and provided workbook at mod's suggestion. Thanks, Richard Buttrey.

  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: Excel formula to count cells with specific text

    Hi,

    It would have assisted greatly if you had uploaded a workbook rather than a picture (as per the guidance notes in the forum rules), but in the absence of a workbook to test perhaps

    Please Login or Register  to view this content.
    or even
    Please Login or Register  to view this content.
    Regards
    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
    02-26-2009
    Location
    STL MO USA
    MS-Off Ver
    Office 2007
    Posts
    8

    Re: Excel formula to count cells with specific text

    Quote Originally Posted by Richard Buttrey View Post
    It would have assisted greatly if you had uploaded a workbook rather than a picture (as per the guidance notes in the forum rules)..."
    Done! Thank you

    Testing your suggestions now.

  4. #4
    Registered User
    Join Date
    02-26-2009
    Location
    STL MO USA
    MS-Off Ver
    Office 2007
    Posts
    8

    Re: Excel formula to count cells with specific text

    Thank you, Richard. The first of your suggested formulas did not count any cells. The second is doing the trick nicely.

+ 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