+ Reply to Thread
Results 1 to 4 of 4

How to make a pivot table using 2021.xls and 2022.xls

  1. #1
    Registered User
    Join Date
    01-03-2020
    Location
    Finland
    MS-Off Ver
    365
    Posts
    2

    How to make a pivot table using 2021.xls and 2022.xls

    Hello,

    I have a following problem. Some of our production data is still on excel tables. Data from each year is stored to distinct files e.g. Prod_data_2021.xls and Prod_data_2022.xls.

    At the turn of the year I always have the same problem when I need to update trend graphs for last ~15 weeks and the actual data is stored to different files.

    The data structure (columns) are same for both files, lets say: column A = date, column B = site, column C = paid hours, column D = output. 2021 file contains +30,000 rows while some hundred rows are added to the new file each day.

    I would like to make a pivot table that would take the data from both of these files, but haven's succeeded. The output I am looking for is very simple, maybe the solution is too if you know what you are doing. I only need continuum for data and output preferably in a pivot table. How would you solve it?

    Site ABC
    ...
    Week 51: 210 pcs/h
    Week 52: 225 pcs/h
    Week 01: 220 pcs/h
    Week 02: 215 pcs/h

    Site DEF
    ...

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: How to make a pivot table using 2021.xls and 2022.xls

    You could append one table to the other in Power Query which is called Get and Transform Data in your version. Then close and load to the Data Model and create your Pivot Table.

    or

    Bring both tables into Power Pivot and join them there to create a single pivot table.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-03-2020
    Location
    Finland
    MS-Off Ver
    365
    Posts
    2

    Re: How to make a pivot table using 2021.xls and 2022.xls

    Thank you! Your first suggestion solved my problem. Tried the second one too, but I couldn't make that work as it demanded unique identifier. Maybe I did something wrong there.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: How to make a pivot table using 2021.xls and 2022.xls

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Pivot Tables changes my dates from 2021 to 1990
    By AltairxD in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 12-13-2021, 01:19 PM
  2. How to use Regexmatch to filter ranges of Times & Dates (ie, 2021-01-05 08:00 - 2021-01-06
    By rddt in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 9
    Last Post: 01-10-2021, 05:01 PM
  3. Replies: 1
    Last Post: 01-10-2021, 04:32 AM
  4. [SOLVED] Formulating 1/1/2021-1/2/2021, 1/3/2021-1/9/2021 etc through one row.
    By jbposey86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-24-2020, 08:27 PM
  5. Replies: 14
    Last Post: 01-22-2020, 04:46 AM
  6. Is it possible to make a Pivot Table from multiple Pivot Tables?
    By flapface in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-06-2014, 11:02 AM
  7. Change Variable data on 1 pivot table, make same changes in other pivot tables
    By matt4003 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2008, 10:55 PM

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