+ Reply to Thread
Results 1 to 9 of 9

Power Query: Combining files but ignoring the first 8 rows

  1. #1
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    154

    Power Query: Combining files but ignoring the first 8 rows

    Hello

    I can successfully combine files in a folder where the data layout and sheet names are the same but each file had a header of 8 rows. Is there a way to ignore the first 8 rows of each file?

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Power Query: Combining files but ignoring the first 8 rows

    Just remove the first 8 rows when setting up the sample query used for each file.
    Rory

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Power Query: Combining files but ignoring the first 8 rows

    When you import the data, instead of loading, hit the Transform button, then in the intersection drop-down (tble icon to left in the window), choose Remove Top Rows ... and type 8 into the box. Now you can load your table.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    154

    Re: Power Query: Combining files but ignoring the first 8 rows

    Thank you for the reply I woudl have never noticed that dropdown.

    I must still be doing something wrong because I followed the steps - 8 rows removed but the table is then blank. I've attached two files I've been testing on. They do have differnet sheet names.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Mingeita; 01-18-2024 at 10:57 AM.

  5. #5
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    154

    Re: Power Query: Combining files but ignoring the first 8 rows

    Even with worksheet names the same I get this.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Power Query: Combining files but ignoring the first 8 rows

    Post the query workbook too, please.

  7. #7
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    154

    Re: Power Query: Combining files but ignoring the first 8 rows

    Attached are the files with same worksheet names and the Query.
    Attached Files Attached Files

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Power Query: Combining files but ignoring the first 8 rows

    You need a similar setup tpo your other question. Then alter the Transform Sample File query to remove the top 8 rows.

  9. #9
    Forum Contributor
    Join Date
    03-11-2021
    Location
    india
    MS-Off Ver
    365
    Posts
    154

    Re: Power Query: Combining files but ignoring the first 8 rows

    Great. Thank you so much.

+ 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] Power Query: Combining files in a folder with different sheet names
    By Mingeita in forum Excel General
    Replies: 9
    Last Post: 01-18-2024, 10:34 AM
  2. [SOLVED] Power query - Combining tables in workbook
    By Ballet4ever in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-28-2023, 05:08 PM
  3. Dynamically Unpivot without Power Query ignoring blank and 0
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-02-2023, 11:28 AM
  4. Combining three tables using power query
    By sunboy in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-08-2022, 05:29 AM
  5. Combining mulitple tables into one using Power Query
    By samparker095 in forum Excel General
    Replies: 23
    Last Post: 04-26-2022, 05:24 AM
  6. Replies: 1
    Last Post: 03-18-2021, 01:06 PM
  7. Replies: 2
    Last Post: 07-19-2015, 06:04 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