+ Reply to Thread
Results 1 to 4 of 4

HELP: Filter Top 10 Clients into pivot table when there are more than 600,000 rows/clients

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Asuncion, Paraguay
    MS-Off Ver
    Excel 2007
    Posts
    5

    Talking HELP: Filter Top 10 Clients into pivot table when there are more than 600,000 rows/clients

    Hi,

    I have created a pivot table with 3 columns- Client Name, Region, and Credit Amount... The number of rows is over 600,000 as there are over 600,000 clients. I am analyzing clients by volume in a pivot table and would like to retrieve my top 10 or top 50 clients by region (12 regions)... but as I drag the variable into the pivot table, i get an error as there are too many (>600,000). Is there a way that I could use a macro to pre-filter the variable "Client" with the top 10 in the Row Field and create the pivot table that i am looking for?

    Any help would be great!!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: HELP: Filter Top 10 Clients into pivot table when there are more than 600,000 rows/cli

    You could use a macro to split the data into 12 sheets - that may get you under the size limit. Create a copy of your data sheet, and delete all columns except Client Name, Region, and Credit Amount (in column A,B, and C), with all else blank. Then run this macro, and create a pivot table from the smaller sheets

    If you still have too many unique clients, then you could sort on client name and use subtotals. If you don't have any clients with multiple credit amount entries, then you could just sort based on credit amount descending.

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 11-14-2014 at 04:07 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Asuncion, Paraguay
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: HELP: Filter Top 10 Clients into pivot table when there are more than 600,000 rows/cli

    Hi Bernie,

    Thanks for the recommendation... the only problem is that I extract the data from a database directly (not excel) and form the pivot table. I need this "master pivot table" to do other things which is why i dont pre-filter it in the database. Is there a macro that I can do which will pre-arrange my pivot table to filterthe Row Field with the Top 10 Clients?

    example: I can manually filter the Row Field by selecting the filter... and ask for the top 10 Clients when there are few clients in the database.

    I would like to replicate this pre-filtered pivot table using a macro when there are many clients. Do you think it is possible?

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: HELP: Filter Top 10 Clients into pivot table when there are more than 600,000 rows/cli

    You can run my macro after the data is extracted into a table rather than directly into the pivot table. I don't know how to filter the row field if there are too many Clients.

+ 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. What is the best way to count the number of clients from a table?
    By VBAhelp3456 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2014, 04:40 AM
  2. [SOLVED] Looking up clients
    By Murphy15 in forum Excel General
    Replies: 20
    Last Post: 01-03-2014, 10:57 PM
  3. Count Nš of clients per mth
    By Loisw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2011, 06:45 AM
  4. Analyze Clients
    By jpnyc in forum Excel General
    Replies: 3
    Last Post: 04-29-2010, 09:06 PM
  5. Match a name to all clients?
    By Dixie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2005, 11: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