+ Reply to Thread
Results 1 to 5 of 5

Unique count of number of instances

  1. #1
    Forum Contributor
    Join Date
    02-11-2008
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    242

    Unique count of number of instances

    Hi,
    I have this sheet,where I have tried to create this pivot table but I am unable to get unique count of indent #,because each indent indent has many lines.

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Unique count of number of instances

    Please try this file.

    I have listed the unique vales of indent # & unique count.

    If this not the correct result, please let me know.
    Attached Files Attached Files
    Last edited by ramananhrm; 11-08-2013 at 02:48 AM.
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Unique count of number of instances

    hi arnab0711. looking at your previous posts, you seem to be using Excel 2007. could you update that in your profile under the MS Off Ver. it helps us decide which method to share. if your records are indeed only hundreds of rows, try this formula in column AL2:
    =--(COUNTIF(E$2:E2,E2)=1)

    copy down & add this to your pivot's Value. Sum it

    if your records are over 10 or 100 of thousands, you may find that the formula slows down or even unable to have available resources to do it. then try this method i shared in Microsoft Answers:

    1. open a new workbook. go to Data -> From Other Sources -> From Microsoft Query. I unchecked the "Use the Query Wizard to create/edit queries". i think it's down to preferences. Choose Excel Files & click OK

    2. Find the file Copy of IDEA_Pending_Indent___Buyer_Wi_081113-ALL.xls & click OK.

    3. Click on IDEA_Pending_Indent___Buyer_Wi_$ & press Add. Click Close

    4. Double-click Buyer Name & Indent # & it'll go down to the data below

    5. go to View -> Query Properties -> Unique Values Only. Click Ok.

    6. go to File -> Return Data to Microsoft Excel

    7. Click on Pivot Table Report & OK

    8. drag Buyer Name to Row Labels & Indent to Values. Make it Count of Indent #

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    02-11-2008
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    242

    Re: Unique count of number of instances

    showing invalid attachment

  5. #5
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Unique count of number of instances

    Please use this function to count the unique value of indent # column.

    Add a sheet & paste this function in any cell.
    (Ctrl+shift+enter is required)
    =SUM(IF(FREQUENCY(IF(Data!$E$2:$E$271<>"",MATCH(Data!$E$2:$E$271,Data!$E$2:$E$271,0)),ROW(Data!$E$2:$E$271)-ROW(Data!$E$2)+1),1))

    or if you want the unique values, then you can try this (Ctrl+shift+enter is required)
    Copy in a new sheet in cell A2 & drag down
    =IFERROR(INDEX(Data!$E$2:$E$271,MATCH(0,COUNTIF($A$1:A1,Data!$E$2:$E$271),0)),"")

    Rgds,
    Attached Files Attached Files

+ 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. Replies: 8
    Last Post: 01-30-2013, 02:58 PM
  2. Count Unique instances across several Columns
    By Leigh.Odonnell in forum Excel General
    Replies: 5
    Last Post: 05-14-2012, 06:05 PM
  3. Replies: 7
    Last Post: 04-27-2012, 10:11 AM
  4. Search a list and count unique instances and match
    By eeanil in forum Excel General
    Replies: 2
    Last Post: 04-24-2012, 12:36 AM
  5. Count unique instances
    By meweaver27 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2007, 09:57 AM

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