+ Reply to Thread
Results 1 to 2 of 2

Power Query Combine Payroll files from Folder where column headers do not align

  1. #1
    Registered User
    Join Date
    04-28-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003, 07 & 10, 16
    Posts
    26

    Power Query Combine Payroll files from Folder where column headers do not align

    Hi - Very new to PQ. I've taught myself the Import from Folder feature, but I'm having difficulty with the following task.

    I've got a Folder called "Payroll" that contains 12 Excel files (1 for each month). The data in these files are not Tables - it's exported from our system on a standard Excel sheet. I've got 2 issues that I can't seem to fix:
    #1 - the first 2 rows of each file need to be removed as the header is in row 3.
    #2 - the column headers are never in the same column. (IE: "Regular Pay" can be in column C in the February file, but in column F in the March file).

    Anyone come across this issue and know how to resolve?

  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,893

    Re: Power Query Combine Payroll files from Folder where column headers do not align

    For item #1: If the first two rows are blank then filter them out. If they contain data that you don't require, then use the delete rows option in the PQE ribbon.
    for item #2: If the names of the headers are exactly the same then PQ will put them in the right place if you are appending each file.

    Without seeing sample file data, it is difficult to be more specific.
    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

+ 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: 1
    Last Post: 03-18-2021, 01:06 PM
  2. Power Query, Problem with combine inconsistent column files in a folder
    By Eric Tsang in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 02-11-2021, 07:17 PM
  3. Power Query: Changing Headers
    By andrewc in forum Excel General
    Replies: 0
    Last Post: 09-23-2020, 02:07 PM
  4. Power Query: Combine and Transform from folder
    By LUKE92 in forum Excel General
    Replies: 13
    Last Post: 06-26-2019, 12:34 AM
  5. [SOLVED] Power Query error when importing files from a folder
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-02-2019, 10:28 AM
  6. Replies: 0
    Last Post: 01-14-2019, 12:59 PM
  7. [SOLVED] Excel Power Query - Only New Files Using 'From Folder'
    By rabbit_post in forum Excel General
    Replies: 4
    Last Post: 11-12-2018, 06:07 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