+ Reply to Thread
Results 1 to 13 of 13

Pivot Table Source Spread Across Two Separate Sheets

  1. #1
    Registered User
    Join Date
    12-27-2013
    Location
    Gilbert, AZ
    MS-Off Ver
    Excel 2007
    Posts
    15

    Pivot Table Source Spread Across Two Separate Sheets

    I have what would otherwise be a single table of data. The table columns are basically: Account Number, Amount, & State. The data in the table shows each sales transaction, what GL account it was recorded to and the state where delivery of the sale took place. The problem is, I have 1,443,812 rows of sales data and since Excel 2013 only goes to 1,048,576 per sheet, I have to break the table up into two separate sheets. So my question is: How can I, or is it even possible to, create a pivot table whose data source includes all the data in both tables as if they were one table? I have Excel version 2013. I tried using the data model but it wants me to create relationships and I am not sure that is the way to go. Also, I tried using the pivot table wizard and created a pivot table by combining the two tables, but the resulting table doesn't have the same options or behave the same way I am use to and I can't figure out how to get a report that I want. In the end, I simply want to show all the sum total sales amounts by account number and by state, with states being in the row header and account number being in the column header.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Pivot Table Source Spread Across Two Separate Sheets

    You can download MySQL and load it to the table, then you a pivot table linked to that table.
    You can save it as CSV, or TWO CSV files, then combine them with a .BAT procedure (which is absurdly easy) then import THAT csv into PowerPivot (which is a free add-in) then use PowerPivot instead of Pivot tables.

    I had up to 24M records in a CSV using the method I just listed before the company let me have my own SQL table to store the data... o_O
    It was something like 700k records a month for about 3 years. The powerpivot handled it just fine but the file size was about 2.4GB lol

    I can send a few links that basically walk you through what you need to do, but it is easy and should take less than 5 minutes. Also you will have to remember on anything but the FIRST csv you have to remove the column headers.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    12-27-2013
    Location
    Gilbert, AZ
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Quote Originally Posted by mikeTRON View Post
    ...I can send a few links that basically walk you through what you need to do..
    Awesome, thanks. Can you post the links up here? That sounds like exactly what I need.

  4. #4
    Registered User
    Join Date
    12-27-2013
    Location
    Gilbert, AZ
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Quote Originally Posted by mikeTRON View Post
    You can download MySQL...
    I actually have Sequel (well, the company I work for does), I just don't know how to use it. I don't know if this is what you are referring to though.

  5. #5
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Yeah SQL can be used to store data as it is a proper database.
    Then you can link your pivot table TO that table and avoid having the issue of >1.04M records...


    I guess you could also use microsoft access but I always found poewrpivot was a better solution even WITH the silly CSV stuff...

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Hey Jocanan,

    Power Query an Excel Add-In can do what I think you want. You would simply append the two tables and work from that.

    Here is one of many links:

    http://datapigtechnologies.com/blog/...nto-one-table/

    BTW, you will need to install the Add-In but it is from Microsoft and is now included in Excel 2016 as "Get & Transform".
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Quote Originally Posted by MarvinP View Post
    Hey Jocanan,

    Power Query an Excel Add-In can do what I think you want. You would simply append the two tables and work from that.
    Will PowerQuery allow more than 1.04M records though? I didnt think so... Otherwise PowerQuery is slick and definitely worth learning about.

  8. #8
    Registered User
    Join Date
    12-27-2013
    Location
    Gilbert, AZ
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Is it easy to load a database to Sequel and link it to a pivot table, I mean, is it something you can tell me how to do or point me to a tutorial that isn't 100 pages long?

    Here is the info I copied out of the about Sequel menu option that shows the version:

    ViewPoint Version: 10.13.304
    System: S1044089.KNIGHTTRANS.COM 07.01.0000 OS/400 V7R1M0
    Client Access: 7.1.0 SI47412
    Host serial#: 10EC68P
    SEQUEL RelMod: R11M03
    Job name: 071263/QUSER/QZRCSRVS
    User profile: OLSONJ
    Client Report: Installed
    Administrator: Not Installed

  9. #9
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Pivot Table Source Spread Across Two Separate Sheets

    I have never used SEQUEL, only SQL and MyQL so I cannot offer much input on that.
    From a high level neither were difficult to use.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Pivot Table Source Spread Across Two Separate Sheets


  11. #11
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Pivot Table Source Spread Across Two Separate Sheets

    "Maximum number of rows filled to worksheet: 1,048,576"

    Right, since that is the max number of rows in a worksheet.
    Access and PowerPivot can import more as they don't store the data IN a worksheet.


    Good suggestion though, I forget about combining data with that add-in!

  12. #12
    Registered User
    Join Date
    12-27-2013
    Location
    Gilbert, AZ
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Found the answers here. Worked great, thanks mikeTRON:

    how to merge csv files:
    http://www.excelbee.com/merge-csv-fi...thout-any-tool

    Then how to link it with Excel Pivot table:
    https://groups.google.com/forum/#!to...ap/zf0U-zSeypQ

    Now the resulting pivot table acts just like it would if it was pulling data from a single table. Perfect! Thanks again!

  13. #13
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Pivot Table Source Spread Across Two Separate Sheets

    Yeah, and if you wanted to process the data BEFORE it hit the pivot table, that is where you would want PowerPivot. You can create relatonships (like vlookups with a reference table) etc etc.
    PowerPivot is great.

    http://chandoo.org/wp/2013/01/21/int...o-power-pivot/

+ 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: 0
    Last Post: 01-06-2016, 07:00 AM
  2. [SOLVED] Generating Separate Sheets from Pivot Table Data
    By Suzerain in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-10-2014, 08:03 PM
  3. [SOLVED] Sorting Data that meets criteria to separate spread sheets.
    By john15882 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2014, 01:15 PM
  4. Replies: 20
    Last Post: 02-28-2012, 11:53 PM
  5. Replies: 1
    Last Post: 06-22-2010, 09:10 AM
  6. Replies: 1
    Last Post: 06-20-2010, 04:00 AM
  7. Replies: 5
    Last Post: 10-01-2009, 11:48 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