+ Reply to Thread
Results 1 to 4 of 4

Pivot help

  1. #1
    Registered User
    Join Date
    05-31-2007
    Posts
    10

    Pivot help

    Hi,

    I am trying to apply a pivot on the system generated excel output, which gets overwritten every day. My requirement is to apply a pivot table for this system generated excel on a different file and refresh it whenever required. Purpose it to open the system generated excel file only when required considering its size. The pivot I applied stays but the data source becomes invalid the next day. Please advise whether this pivot idea will work as else advise me on other ways doing this.

    Thanks in advance.

    Regards
    MS

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot help

    You don't say how the data gets overwritten every day. Also I don't know what version of Excel you are using. Therefore, I propose the most generic solution: create a named dynamic range to cover the data and use that as the data source for the pivot table. That should work as long as the column headers don't change.

    Assuming contiguous data and the data starts in Cell A1 the following should work. You'll need to use the name manager to assign a name to it.

    =OFFSET('SheetName'!$A$1,0,0,COUNTA('SheetName'!$A:$A),COUNTA('SheetName'!1:1))

    Change the data source to the name associated with this range. You may have to refresh the pivot table, but it should always point to the exact amount of data that you have.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    05-31-2007
    Posts
    10

    Re: Pivot help

    To add more detail to it:
    1. This Excel file named as AAA which is automatically exported in the network drives every day
    2. I am trying to apply a pivot of this file AAA on a other file BBB
    3. We will not be opening the AAA file unless we required more details apart from the pivot
    4. We are currently using Office 2010.
    5. As mentioned earlier, the ranges named is lost once the file AAA is overwritten the next day.

    Trust this brings more clarity to my question. Please advise.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Pivot help

    Putting the code into Sheet AAA won't do any good since it gets overwritten every day.

    So what you are going to have to do is import AAA into another workbook. There are a couple of ways to do this: (a) you can open the new workbook and copy and paste the data to where you want it using VBA. (b) You can use MS-Query which will bring the file into a table in the new workbook without opening it.

    This is as far as I can take it without having sample workbooks.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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: 2
    Last Post: 12-18-2016, 08:37 PM
  2. Changing a pivot chart column color based on the pivot table category
    By Shawne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2014, 09:12 AM
  3. Replies: 4
    Last Post: 06-19-2014, 12:59 PM
  4. Replies: 2
    Last Post: 05-08-2013, 04:56 PM
  5. Replies: 2
    Last Post: 02-20-2013, 08:27 AM
  6. Power Pivot with multiple pivot charts using different pivot data
    By Paul-NYS in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-10-2013, 10:18 AM
  7. [SOLVED] How does the term 'pivot' apply to Excel's Pivot tables and Pivot.
    By stvermont in forum Excel General
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

Tags for this Thread

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