+ Reply to Thread
Results 1 to 3 of 3

Thread: Need to count items and display summary

  1. #1
    Registered User
    Join Date
    08-26-2007
    Posts
    1

    Need to count items and display summary

    Hi - I'm an Excel dummy so my apologies if there's an obvious way to do this....

    What I need to do is count the occurrences of each distinct item within a range, without having to specify what those items are.

    In other words, instead of telling Excel "count how many Sue's, James's and Chris's there are between X and Y", I need to tell it "display a summary showing each distinct item in that range and how many of each there are".

    Is this possible with a formula, or will I need some VBA code to do it?

  2. #2
    Forum Contributor
    Join Date
    06-14-2008
    Posts
    149
    Hi,

    Try the following:
    1. Sort your data by item.
    2. Insert a column heading in the first row.
    3. Select the whole column where your items are (or just the required range).
    4. In the data menu click subtotals.
    5. Excel will do the subtotals by item and since your data is all alpha it will use count function for the subtotals.
    Welcome to: http://www.exceldigest.com/myblog/
    "Excel help for the rest of us"

  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566
    Hi, and welcome to the forum.

    Your request is a little ambiguous since the items you want to count will have to be specified in some way or another. Excel is good but not psychic

    se1429 has suggested one option. The other is to extract a unique list of items with the Data Filter Advanced Filter Unique functionality, and then use a COUNTIF() function to count the items in the required range using the unique list values as the second element in the COUNTIF() function.

    HTH

+ 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.2.0