+ Reply to Thread
Results 1 to 4 of 4

Power Query to Convert Data Range to a Table

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Power Query to Convert Data Range to a Table

    Hi,

    I have very recently discovered Power Query and it looks like it could make a huge difference to what I do in Excel.

    In the attached workbook I have some fictitious sample data that arrives in a workbook in a format that's not so easy to work with (for me, anyway) - for example, there are merged cells (rows 8 and 9), dates are in text format and the headers in row 11 are the same whatever the period measured.

    With this in mind I was hoping that someone could please tell me how to achieve, using Power Query, the following separate but related tasks:

    1. Convert the data in these two worksheets into separate Tables in which the merged cells are separated and it's clear to which period each set of "Sales Growth" and "Sales Rank" belongs.

    2. Combine the data in both sheets into a single Table, along the same lines as the Tables described in point 1.

    It's only the data in rows 8 and below that I'm interested in.

    Any advice would be very much appreciated.

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 07-30-2020 at 04:14 AM.

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

    Re: Power Query to Convert Data Range to a Table

    For step 2, please mock up what you would want the solution to look like. Combining them as you have asked could connote various types of combinations and since I no longer at adept at mind reading (old age as crept in), I need you to show us what it should look like.
    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
    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,906

    Re: Power Query to Convert Data Range to a Table

    Here is the Mcode for what I think you are looking for in Step 1

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Power Query to Convert Data Range to a Table

    Thanks very much, Alan!

+ 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] Understanding Excel Power Query Basics - Table vs Data Set
    By Jakepr26 in forum Excel General
    Replies: 7
    Last Post: 06-30-2020, 02:03 PM
  2. Power query on mac from table/range
    By bts729 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 04-14-2020, 10:05 AM
  3. Updating a table with new data in power query
    By SueBristow in forum Excel General
    Replies: 0
    Last Post: 04-02-2020, 03:53 PM
  4. [SOLVED] Power Pivot/Query Convert Existing Table to Query
    By trisoldee in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-23-2019, 04:27 PM
  5. How to resolve Data FormatError We couldn't convert it to Number-Power Query
    By paradise2sr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2019, 01:16 AM
  6. [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
  7. Adding data to the end of a table with Power Query
    By afila in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2016, 08:29 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