+ Reply to Thread
Results 1 to 5 of 5

count no of occurence per item

  1. #1
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    156

    count no of occurence per item

    A1: apple
    A2: apple
    A3: orange
    A4: apple
    A5: grape
    A6: orange
    A7: grape

    apple 3
    orange 2
    grape 2

    how can i achieve such result?
    Last edited by okl; 05-08-2009 at 11:19 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: count no of occurence per item

    Hello Okl,

    What version of Excel are you using? And are you required to use VBA code (programming), or will worksheet functions suffice?

  3. #3
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    156

    Re: count no of occurence per item

    excel 2003, function will do.

    thanks

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: count no of occurence per item

    Ok, good.

    1. Select your data in column A (you may want a header in A1, like "Fruit Type")
    2. Click Data -> Filter -> Advanced Filter
    3. Select 'Copy to another location' and next to 'Copy To', type in or select another cell (like B1)
    4. Check the box for 'Unique Values Only'
    5. Click OK

    That will create a list of unique values from column A, starting in B1. To get the counts of each, you can then use a formula in C2 such as:

    =COUNTIF($A:$A,B2)

    Finally, double-click the lower right corner of C2 and the formula will automatically fill itself down to the last unique value in column B.

    Hope that helps!

  5. #5
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    156

    Re: count no of occurence per item

    solved, thanks!

+ 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