+ Reply to Thread
Results 1 to 6 of 6

Select Rows between blank rows using Power Query

  1. #1
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Select Rows between blank rows using Power Query

    I have a worksheet that breaks up raw data tables between blank rows. What is the best way to single out each of these tables to their own queries.

    There can be 1 or multiple of these tables but they will stop completely after 2 blank rows and a FOR INTERNAL USE ONLY disclaimer

    Attached a sample with how the data comes in in the first tab, and then how i want the the queries to look in the next 2 tabs. If there were more Placements (placement 3, placement 4 etc..) then there would be 3rd and 4th additional tabs but there would be a maximum of 10 of these tables.
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Select Rows between blank rows using Power Query

    How consistent is your data going to be to be able to delineate between the tables?

    Also the tables have different column headers within.

  3. #3
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: Select Rows between blank rows using Power Query

    There are about 30 or 40 types of tables that could potentially be there and those will have headers unique to them. There wont be consistency into what tables or order they would appear in. The only thing consistent is the blank lines in between.

  4. #4
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: Select Rows between blank rows using Power Query

    This ended up being kind of a nightmare but i added a bunch of conditionals like if column 1 is blank and 2 is not then column 1. Which i then filled down. Since there are two types of lines only i was then able to separate out the two types of queries and manipulate them individually.

  5. #5
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Select Rows between blank rows using Power Query

    So is this Solved?

  6. #6
    Registered User
    Join Date
    03-05-2011
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: Select Rows between blank rows using Power Query

    Quote Originally Posted by kersplash View Post
    So is this Solved?
    I think there might be a better way to do this but I shoudl be able to use it with the conditionals.

+ 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 Filter All Rows After Prior Month
    By Tayque_J_Holmes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2018, 11:31 AM
  2. Multi rows into Single row using power query
    By alipezu in forum Excel General
    Replies: 4
    Last Post: 10-22-2017, 08:02 AM
  3. [SOLVED] Power Query Not loading all Rows from Source File
    By jdriscol in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2017, 04:03 PM
  4. [SOLVED] Power Query: Extract data from table after other rows are filtered
    By JimDandy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-25-2017, 02:10 AM
  5. Replies: 11
    Last Post: 08-01-2017, 06:08 AM
  6. [SOLVED] Changing Power Query rows to columns on repeat cells.
    By beaglesBuddy in forum Excel General
    Replies: 3
    Last Post: 06-14-2017, 02:13 PM
  7. Remove Unique rows in Power Query
    By danielmorrison in forum Excel General
    Replies: 2
    Last Post: 03-11-2016, 09:06 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