+ Reply to Thread
Results 1 to 6 of 6

Count Occurences of text substring

  1. #1
    Registered User
    Join Date
    07-23-2007
    Posts
    14

    Count Occurences of text substring

    This should be very easy but I keep getting a return of "0". This is for a small recreational golf league my mother coordinates - totally volunteer.

    I have a small worksheet for golf tee times, the name of the golfer and the word (walk) or (ride) -
    eg.

    Column A Tee Time Column B John Smith (walk) Column C Tee Time Column D Dan Jones (ride)
    10:00 John Smith (ride) 11:14 Dan Jones (walk)

    There will usually be about 100 golfers who are constantly changing tee times and whether they will ride or walk. The only calculation in the worksheet is to do the following tallies -

    Total # of golfers -
    Total # riding -
    Total # walking

    I have tried countif, sumif, just plain count and I can't see what I am doing wrong.

    You guys have been great help before with more complicated stuff so I'm hoping this will be obvious.

    Thanks very much in advance
    Dawn

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Count Occurences of text substring

    use wildcard * if your countif

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


    sorry dont know the columns you have setup...change columns to suit
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count Occurences of text substring

    you could probably just count "("
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count Occurences of text substring

    Try these...

    Total golfers:

    =COUNTA(B2:B100)+COUNTA(D2:D100)

    Total walkers:

    =COUNTIF(B2:D100,"*(walk)")

    Total riders:

    =COUNTIF(B2:D100,"*(ride)")

    Adjust the ranges to suit.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-23-2007
    Posts
    14

    Re: Count Occurences of text substring

    Thank you everyone! I used your suggestions first Tony and they worked perfectly. I don't know what I was doing but you saved me a lot more frustration.

    Dawn

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count Occurences of text substring

    You're welcome. Thanks for the feedback!

+ 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] count the number of text occurences on the refered rows
    By Jul Stev in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2013, 07:58 AM
  2. Count occurences of a text value across multiple workbooks or worksheets
    By PeteBest in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-21-2013, 07:29 PM
  3. Replies: 4
    Last Post: 10-20-2010, 10:28 AM
  4. [SOLVED] How do I count the # of unique occurences of a text in a column?
    By Rob Kaiser in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2005, 02:05 AM
  5. Counting occurences of a substring in a range of cells.
    By Jeff Cantwell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2005, 06:05 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