+ Reply to Thread
Results 1 to 6 of 6

Distinct values in excel pivot

  1. #1
    Registered User
    Join Date
    12-19-2010
    Location
    mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    71

    Distinct values in excel pivot

    Hello,

    I have attached an excel workbook here.

    I have some data in it. I am trying to create a pivot table which will give me count of unique number of Categories mentioned in column C.

    I have given result which I am looking for in result worksheet.

    I am looking to create it via pivot only. Please help.


    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Distinct values in excel pivot

    What version of Excel are you actually using?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    12-19-2010
    Location
    mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: Distinct values in excel pivot

    excel 2010

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Distinct values in excel pivot

    Do you have the power pivot add-in available to you?

  5. #5
    Registered User
    Join Date
    12-19-2010
    Location
    mumbai, India
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: Distinct values in excel pivot

    No Power pivot available. I can understand that with power pivot it would have been easy.

    Can a vba function be built which will work in sync with normal pivot. Just a thought.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Distinct values in excel pivot

    Add a new column to the source data using this formula:

    =1/COUNTIFS($A$2:$A$24,A2,$C$2:$C$24,C2)

    and then sum it in your pivot table. Note that it is specific to the unique count of categories by name. If you add other groupings to the pivot it will not work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Distinct Values w/ Pivot Table
    By Lapadite in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2016, 10:38 AM
  2. count distinct values in excel
    By annux08 in forum Excel General
    Replies: 3
    Last Post: 07-13-2015, 09:21 AM
  3. Replies: 0
    Last Post: 04-27-2015, 03:32 PM
  4. Get distinct values using pivot table
    By mavericky10 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-12-2015, 09:21 AM
  5. [SOLVED] Pivot Table that performs a distinct count in excel 2013
    By tdf2437 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 09-09-2014, 09:03 AM
  6. Pivot Table with Distinct Values
    By Ziggy4e in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-21-2014, 11:11 PM
  7. [SOLVED] Count Distinct Values by Group Using Pivot Table (NM)
    By MCP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2005, 06:06 PM

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