+ Reply to Thread
Results 1 to 4 of 4

Count # of times text appears in cell range by cell referencing not =countif(A:A, ="text")

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    28

    Count # of times text appears in cell range by cell referencing not =countif(A:A, ="text")

    A is the count, B is the text to be counted, C is the range. I am wanting to be able to place a formula such as "countif(C1:C10, *B1*)" in cell A1 and drag down. It only needs to contain the B1 text not be exact. I want to avoid having to type in "*:001*", "*:002*" etc. in column A. Columns B & C are both stored as text values.


    A B C
    1 :001 01:003
    3 :002 02:002
    1 :003 03:002
    1 :004 04:001
    0 :005 05:003
    1 :006 01:006
    0 :007 02:008
    1 :008 03:004
    0 :009 04:005
    0 :010 05:002

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Count # of times text appears in cell range by cell referencing not =countif(A:A, ="te

    try below in A1
    =COUNTIF($C$1:$C$10,"*"&$B1&"*") and drag down
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: Count # of times text appears in cell range by cell referencing not =countif(A:A, ="te

    smit.etha, I assume that there is a mistake in your first post and that cell A3 should read 2. If not, can you explain why it should be 1. If you did make a mistake, then Hemesh's solution is spot-on.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    02-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    28

    Re: Count # of times text appears in cell range by cell referencing not =countif(A:A, ="te

    Ya there was a mistake in A3. I type all those values in by hand and miscounted. hemesh was spot on so thank you both very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. count number of times the letter "a" appears in a cell
    By mohammadkhajoo in forum Excel General
    Replies: 8
    Last Post: 05-31-2014, 07:48 PM
  2. Find "TEXT 1" in a range and enter "TEXT 2" in the adjacent cell
    By madreag in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2013, 05:34 PM
  3. Replies: 5
    Last Post: 07-05-2012, 04:04 PM
  4. Replies: 8
    Last Post: 07-05-2012, 03:07 PM
  5. [SOLVED] How can I count the # of times the word "Yes" appears in a range
    By Meri in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-07-2006, 05:45 PM

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