XL: How to Use Microsoft Excel to Count All Entries in a ListLast reviewed: February 2, 1998Article ID: Q138889 |
The information in this article applies to:
SUMMARYThis article explains how to use the Consolidate command to create a list that contains one of each name in a list and a count of the number of times each name appears in that list. For example, if you have the following list of names
A1: Albert A2: Bob A3: Dave A4: Albert A5: Bob A6: Edyou can use consolidate to display one of each name and the number of times it appears in the list:
C1: Albert D1: 2 C2: Bob D2: 2 C3: Dave D3: 1 C4: Ed D4: 1 MORE INFORMATIONNote that the first column of the reference must be the names and there must be a column of numbers next to it. Any additional columns may give unexpected results. To do create a list using Consolidate, use the following steps:
C1: Albert D1: 2 C2: Bob D2: 2 C3: Dave D3: 1 C4: Ed D4: 1The name Albert appears twice in the list, Bob twice, Dave once, and Ed once. Note that the result is displayed in the same sequence that Microsoft Excel finds the names in the source list. By specifying other functions, such as SUM, these results can be different. For example, you can calculate a subtotal for each of the names. NOTE: The result cannot be dynamic; that is, if the data changes, you must follow steps 2-4 again.
REFERENCES"Microsoft Excel User's Guide," version 5.0, Chapter 5, "Retrieving and Analyzing Data from Lists and Tables"
|
Additional query words: 5.00 7.00 8.00 97 98 XL98 XL97 XL7 XL5 COUNTIF()
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |