Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Unique Records in Pivot Tables

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I need to do a count of unique records in a pivot table. Every time I use the COUNT function it counts all the data? Is there an easy way to get the count of unique records? HELP!!

    p.s. the records are numeric

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Suppose cells A1:A11 contain...

    {"Field1"
    ;10
    ;10
    ;30
    ;10
    ;25
    ;10
    ;25
    ;30
    ;30
    ;15}

    For Field2 (B2:B11) enter the formula, =1/COUNTIF($A$2:$A$11,A2), into cell B2 and copy down.

    Create a PivotTable with Sum of Field2 in the DATA area. As you can see there are 4 unique Field1 values.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •