+ Reply to Thread
Results 1 to 6 of 6

Counting Multiple Text Strings in the Same Column?

  1. #1
    Registered User
    Join Date
    09-20-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Red face Counting Multiple Text Strings in the Same Column?

    Hello,

    I've been playing with the COUNTIF and SUM functions to devise a way to count the number of times a combination of text strings show within a column, yet the bulk of the tips I find correlate more to finding vaules across columns and rows. Though helpful, it's not quite working for what I'm trying to do.

    EXAMPLE:

    A

    fox trot dance
    dog eats apples
    fox climbs trees
    cat chases dog
    dog chases cat
    cat eats mice
    fox climbs wall
    fox chases cat
    dog climbs trees

    How would I construct a formula that would count the number of instances "fox" and "climbs" appear together in the same string? What I come up with keeps tabulating all the instances of "fox" and "climbs" to give me a sum of the total times the words are used. I just want to see when they're used together. As always, any and all help is most appreciated.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Counting Multiple Text Strings in the Same Column?

    with a helper column
    say in B1
    =IF(AND(ISNUMBER(SEARCH({"fox","climbs"},A1))),1, "") then you can sum the out put.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Counting Multiple Text Strings in the Same Column?

    Hi,
    Try this formula :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Counting Multiple Text Strings in the Same Column?

    hi MurasakiK. another alternative:
    =SUM(COUNTIF(A1:A9,{"*fox*climbs*"}),COUNTIF(A1:A9,"{*climbs*fox*}"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    09-20-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Re: Counting Multiple Text Strings in the Same Column?

    It's zeroing out on my end. Does it matter if the text strings are attached by dashes (e.g. fox-climbs...)?

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Counting Multiple Text Strings in the Same Column?

    check your range or better post the formula you entered.

+ 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. [SOLVED] Need to extract text from within multiple strings and arrange it in a single column
    By sampflederer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2013, 01:35 PM
  2. Replies: 1
    Last Post: 12-20-2012, 04:18 PM
  3. Replies: 3
    Last Post: 06-06-2012, 01:44 PM
  4. Filtering a Column for Multiple Text Strings
    By Dynamo418 in forum Excel General
    Replies: 0
    Last Post: 09-21-2011, 11:27 AM
  5. [SOLVED] Counting text strings
    By 525047 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-21-2006, 12:40 AM

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