+ Reply to Thread
Results 1 to 2 of 2

count quantity of each unique value

  1. #1
    Registered User
    Join Date
    04-09-2008
    Posts
    5

    count quantity of each unique value

    Ok, i know there is a simple way to do this(i think), but my searches dont come up with what i want.

    Best way to describe is with a example.

    I have a column with values like so:
    1Q07
    1Q07
    1Q08
    1Q09
    1Q09
    1Q09
    1Q10
    1Q11
    1Q12
    1Q12

    I want the count of each unique value in a separate column like:
    1Q07 | 2
    1Q08 | 1
    1Q09 | 3
    1Q10 | 1
    1Q11 | 1
    1Q12 | 2

    I already have the filter code in place to grab the column and filter out each unique value, so all i need now is to have the column next to it be able to count the quantity of each value.

    If this is answered somewhere else and i didnt find it, feel free to link it instead. Thanks!

    Matt

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try using Countif()

    e.g. =Countif(A:A,X1) where X1 contains the item to count in column A

    adjust as necessary
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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