+ Reply to Thread
Results 1 to 5 of 5

Count how many cellsl contain (part of a) text

  1. #1
    Registered User
    Join Date
    03-16-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Count how many cellsl contain (part of a) text

    Just a fairly simple question I assume:

    I have a column with text strings, and I like a count funtion to find out in how many cells my text string occurs. For example:
    Column
    ABC
    AABC
    DEF
    FFF
    DDD
    ABCDE
    DDDABCEEE

    If I were to find the number of cells containing "ABC" (either only ABC or as part of a text string), I would find 4 cells.

    What would the formula be then?

    Thanks in advance

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Count how many cellsl contain (part of a) text

    Try:

    =COUNTIF(A1:A1000,"=" & "*ABC*")
    Gary's Student

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count how many cellsl contain (part of a) text

    Hi Nielsss,

    welcome to the forum.
    Try using below formula, enter this using key combination: ctrl shift enter

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


    see attached:-
    searching a text in a range.xlsx


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    03-16-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count how many cellsl contain (part of a) text

    Thanks, that seemed to have worked!

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Count how many cellsl contain (part of a) text

    Cheers

    Please mark this thread as [SOLVED].. thx


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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