+ Reply to Thread
Results 1 to 8 of 8

Counting text occurrences in a column

  1. #1
    Registered User
    Join Date
    09-22-2008
    Location
    Rhode Island
    Posts
    25

    Counting text occurrences in a column

    I am working on a big project involving baseball statistics, evaluating individual seasons. After a great deal of entertaining data gathering, I have a spreadsheet of 1896 seasons that meet certain criteria--that is, seasons belong to an individual player. The player's names are in column A of my spreadsheet.

    Individual names appear between 1 and 15 times. I would very much like to generate a quick table (or just a couple of columns) that lists every name in column A, and how many times it appears. My understanding is that the histogram function won't work with text. Can some one tell me how I can do this? Thank you. I'm running Excel 2013 on windows.

    KaiserD2

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Counting text occurrences in a column

    There are numerous ways this can be done.

    But I am thinking you probably don't need to use Macros for this.
    So I have a spreadsheet that might work for you.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Counting text occurrences in a column

    There are numerous ways this can be done.

    But I am thinking you probably don't need to use Macros for this.
    So I have a spreadsheet that might work for you.

    I didn't create it. But found it on this site listed under sheet based unique list.

    Column B is a list of entries

    The length of that list is stored in the named range "List"
    The start row of the output is stored in the named range "List_Start"

    an array formula entered using ctrl & shift & enter is used to enter the formula in column B.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 08-15-2014 at 02:45 PM.

  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: Counting text occurrences in a column

    Is this a one-time task or is it something that should be dynamic?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    09-22-2008
    Location
    Rhode Island
    Posts
    25

    Re: Counting text occurrences in a column

    Quote Originally Posted by Tony Valko View Post
    Is this a one-time task or is it something that should be dynamic?
    It does not have to be dynamic. My thanks to Mehmetcik but I would appreciate something simpler.

    DK

  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: Counting text occurrences in a column

    Try this...

    Let's assume you want the list of unique names to be placed in column D starting at cell D1.

    Select the range of names in column A including the column header.

    Goto the menu Data>Filter>Advanced
    Select: Copy to another location
    List range should already be entered
    Copy to: D1
    Select: Unique records only
    Click OK

    Enter this header in E1: Totals

    Enter this formula in E2:

    =COUNTIF(A:A,D2)

    Copy down as needed.

  7. #7
    Registered User
    Join Date
    09-22-2008
    Location
    Rhode Island
    Posts
    25

    Re: Counting text occurrences in a column

    that worked!!! Many thanks.

    Quote Originally Posted by Tony Valko View Post
    Try this...

    Let's assume you want the list of unique names to be placed in column D starting at cell D1.

    Select the range of names in column A including the column header.

    Goto the menu Data>Filter>Advanced
    Select: Copy to another location
    List range should already be entered
    Copy to: D1
    Select: Unique records only
    Click OK

    Enter this header in E1: Totals

    Enter this formula in E2:

    =COUNTIF(A:A,D2)

    Copy down as needed.

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

    Re: Counting text occurrences in a column

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Replies: 8
    Last Post: 11-08-2012, 02:26 PM
  2. Counting Multiple Occurrences of Text in a Cell
    By bentleybob in forum Excel General
    Replies: 5
    Last Post: 05-02-2011, 01:44 PM
  3. Counting text occurrences by week
    By KFitz in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 09-29-2010, 06:06 PM
  4. Counting occurrences based on uniqueness of value in another column
    By wombat323 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-10-2007, 07:42 AM
  5. Counting occurrences of text
    By pinkgoldfish in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-27-2007, 04:48 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