+ Reply to Thread
Results 1 to 6 of 6

Create a pitvot table with from several tables that have identical columns?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    Create a pitvot table with from several tables that have identical columns?

    I have six tables that have identical columns.

    The columns are:

    Product code, Sales, Counctry, Currency and so on...

    I know how I can create a pivot table for each individual table. But is it possible to create a pivot table with rows from all the tables?

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Create a pitvot table with from several tables that have identical columns?

    In the pivot table wizard, choose the option to create from "Multiple consolidation ranges", though I suspect these should all really be a single table

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Create a pitvot table with from several tables that have identical columns?

    Hi,

    I agree with Kyle. Create a single table. If your six tables each mean something different, just add an extra column to your single database and enter in there for each record a reference to the meaning of the current tables. e.g. the new column would contain text like 'Table1', Table2...Table6'
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    Re: Create a pitvot table with from several tables that have identical columns?

    I understand what you are saying, that they should be all one table. But in this case, for various reasons it was decided to have different tables.

    When I use the pivot table wizard to consolidate I don't get the pivot table fields I am used to getting. I only get Row, Column and Value. I don't get Product code, Turnover and those kinds of fields (which are columns in my tables). Do you have any idea what I might be doing wrong?

    For each range I am adding, I am choosing all columns, the headers of the tables and then all rows of the tables.

    SNAG-0000.png
    SNAG-0001.png
    SNAG-0003.png
    Attached Images Attached Images
    Last edited by OldManExcellor; 11-05-2014 at 07:34 AM.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Create a pitvot table with from several tables that have identical columns?

    Quote Originally Posted by OldManExcellor View Post
    I understand what you are saying, that they should be all one table. But in this case, for various reasons it was decided to have different tables.
    Why? For what benefit?

    If the data is perhaps imported from an external source I'd still be inclined to have a pre-processing macro that consolidates the tables into a single table and use a single PT.

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Create a pitvot table with from several tables that have identical columns?

    Please post a sample workbook

+ 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. [SOLVED] How do I merge two tables in Excel that have identical columns?
    By arn0ldas in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2013, 07:29 AM
  2. Replies: 4
    Last Post: 10-10-2012, 04:59 PM
  3. Syncing/sorting identical columns in 2 or more tables?
    By Alabaster in forum Excel General
    Replies: 2
    Last Post: 10-23-2010, 03:45 AM
  4. Replies: 2
    Last Post: 05-27-2010, 11:39 AM
  5. Replies: 4
    Last Post: 01-30-2007, 08:44 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