+ Reply to Thread
Results 1 to 2 of 2

count distinct in Pivot table

  1. #1
    soe
    Guest

    count distinct in Pivot table

    the data is alike
    A
    B
    C
    A
    when I count, I want to count how many distinct items, the result of above
    data shouls show only 3 (A, B and C).
    when I use pivot, the total shows 4 (counting 2 As).
    Pls help how to get this done.

  2. #2
    Debra Dalgleish
    Guest

    Re: count distinct in Pivot table

    A pivot table won't calculate a unique count. You could add a column to
    the list, then add that field to the pivot table.

    For example, to count unique items in column A, use the following formula:

    =IF(COUNTIF($A$1:A2,A2)=1,1,0)

    Copy this formula down to all rows in the list, then add the field to
    the pivot table.


    soe wrote:
    > the data is alike
    > A
    > B
    > C
    > A
    > when I count, I want to count how many distinct items, the result of above
    > data shouls show only 3 (A, B and C).
    > when I use pivot, the total shows 4 (counting 2 As).
    > Pls help how to get this done.



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ 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