+ Reply to Thread
Results 1 to 2 of 2

Pivot Table Query

  1. #1
    Registered User
    Join Date
    06-10-2014
    Posts
    21

    Pivot Table Query

    Hi All,

    I have written a VBA application which applies a number of SUMIF formulas to various columns in my dataset. The dataset currently holds 50000 rows and grows larger each month.

    Because of this the calculation time is getting longer and longer. At present it takes about 5 minutes.

    Having done some testing today I have found that if I create a pivot table from the data and reference that instead, this speeds things up quite considerably.

    My question though is can a pivot table be created in memory and referenced from there? I don't need it to be physically on a worksheet as it would only be required temporarily just so that I can reference the row totals. Is this possible or do I definitely have to create it physically?

    Thanks.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Pivot Table Query

    Pivot table is an object and you'll need it in workbook.

    Depending on version of Excel, you may have access to PowreQuery. Which you can use to group data and return total row resulting data.

    There are other methods, but without sample workbook, bit hard to give you specifics.

    To upload sample, use "Go Advanced" button, and follow "Manage Attachments" hyperlink. It will launch new tab/window for managing uploads.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ 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: 1
    Last Post: 11-12-2018, 02:46 PM
  2. Add custom fields to a table to simulate a pivot table - Power Query
    By nathalielesperance in forum Excel General
    Replies: 2
    Last Post: 10-25-2018, 06:44 AM
  3. Query From a Pivot Table
    By Moxy Fruvous in forum Excel General
    Replies: 1
    Last Post: 11-20-2017, 06:07 AM
  4. Excel Pivot Chart/Pivot Table query
    By slys in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-16-2013, 10:42 AM
  5. Replies: 0
    Last Post: 11-18-2011, 07:31 AM
  6. ActiveCell is Query Table or Pivot Table?
    By Air_Cooled_Nut in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2006, 11:07 AM
  7. Pivot Table Query
    By sgriff in forum Excel General
    Replies: 0
    Last Post: 07-21-2006, 03:08 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