+ Reply to Thread
Results 1 to 4 of 4

Countif to search for text in a cell

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Countif to search for text in a cell

    I'm looking to search "DSI" from a cell in a list and counting how many there are, is there an easy way to do that?

    Column A
    DSI C
    ABC
    DFE
    EFG DSI

    Countif function = 2
    Last edited by holycowbanana85; 07-25-2012 at 07:32 PM.

  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,463

    Re: Countif to search for text in a cell

    =COUNTIF(A:A,"*DSI*")

    or

    =COUNTIF(A:A,"*" & D1 & "*") ... if cell D1 contains the text "DSI"


    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
    07-23-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Countif to search for text in a cell

    Quick question, what does the * do in between the " "? And this works! Thanks!

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Countif to search for text in a cell

    Hi holycowbanana85

    They are wild card searches

    http://office.microsoft.com/en-gb/ex...005203612.aspx

+ 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