+ Reply to Thread
Results 1 to 2 of 2

Multiple table in pivot table

  1. #1
    Registered User
    Join Date
    12-20-2015
    Location
    Israel
    MS-Off Ver
    2013
    Posts
    9

    Multiple table in pivot table

    I have 2 Listobjects (Tables) in a workbook,
    i have one column in Table1 that have unique values (lets call it 'Key column')
    i also have a foreign key column in table2.

    i want to create a pivot table based on these two tables using VBA code.
    taking columns from both tables to columns,rows,values and filters of that pivot.

    how do i do that?

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Multiple table in pivot table

    You have a couple of options -

    1) As stated on your profile you are using the Excel 2013 Version, which has a Data Model where you can link Multiple Columns from different tables (Like a Join). After this, columns from both the tables will be visible under 1 Pivot. (VBA Not Required)

    2) Use Vlookup and make a common table with columns from both tables, and then make the Pivot..
    Cheers!
    Deep Dave

+ 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: 09-04-2015, 02:47 AM
  2. Replies: 1
    Last Post: 07-29-2015, 05:19 PM
  3. Replies: 1
    Last Post: 07-29-2015, 05:15 PM
  4. Replies: 6
    Last Post: 07-31-2014, 12:56 PM
  5. Collapse/Expand - Pivot table Fields - Need equivalent option in Excel VBA Pivot table
    By ragavendraph in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 03:00 PM
  6. Return pivot table range...not the data table, the PIVOT TABLE!
    By Air_Cooled_Nut in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2008, 01:07 PM
  7. Multiple MS Access table sources for pivot table
    By fbj in forum Excel General
    Replies: 5
    Last Post: 08-15-2005, 11:05 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