+ Reply to Thread
Results 1 to 7 of 7

Count appearances of text value in column

Hybrid View

  1. #1
    Registered User
    Join Date
    04-28-2010
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Question Count appearances of text value in column

    What function would I use to count how many times a text value has appeared in a column, for example if I wanted to find how many times "Las Vegas" appeared in a column.

    However, I would like to find the most common text value in a column and create a graph from this showing which is the most common text value, this would be done on another sheet.

    How would I go about doing this?

    Thank you for your time,
    Connor

  2. #2
    Registered User
    Join Date
    03-28-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Count appearances of text value in column

    Hey Connor,

    You would want to use the Countif function, which would look like this:

    =COUNTIF(A:A,"Las Vegas")
    The other might be a little more complicated. Do you have a complete list of the different text values? ie Las Vegas, Portland, Sacramento etc

    Does this list change?
    Warm regards,

    Shampoo Monkey

    If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above this post.

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Count appearances of text value in column

    To get the most common text in a range use this,

    =INDEX(A1:A100,MATCH(TRUE,COUNTIF(A1:A100,A1:A100)=MAX(COUNTIF(A1:A100,A1:A100)),0))

    Confirm with Ctrl+Shift+Enter

    Regards

  4. #4
    Registered User
    Join Date
    04-28-2010
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Wink Re: Count appearances of text value in column

    Thanks, thats working as it should now

    Do you know how I could make a graph for the most visited destination?

    Thanks for your time,
    Connor

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count appearances of text value in column

    Quote Originally Posted by connonr8392
    Do you know how I could make a graph for the most visited destination?
    Use a Pivot Chart ... in terms of config. on the underlying Pivot Table itself your "Column A" would be both Row Field and Data Field (set to Count).
    (see link in my sig. for general intro if unfamiliar)

    On a formula note: for finding most frequent text I'd perhaps suggest an alternative:

    =INDEX(A1:A100,MODE(MATCH(A1:A100,A1:A100,0)))

    though conceded, unlike the prior suggestion the above would expect one word to appear at least twice.

  6. #6
    Registered User
    Join Date
    04-28-2010
    Location
    Doncaster, England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Count appearances of text value in column

    I don't understand, does a pivot table and a pivot chart need to be made?

    Thanks,
    Connor

+ 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