Pinterest Pixel

Copy and Paste Queries Across Workbooks Using Power Query

Power Query or Get & Transform (In Excel 2016) lets you perform a series of steps to... read more

Download Excel Workbook
Bryan
Posted on

Overview

Copy and Paste Queries Across Workbooks Using Power Query | MyExcelOnline Copy and Paste Queries Across Workbooks Using Power Query | MyExcelOnline

Power Query or Get & Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data.  One of the steps it allows you to copy an existing query from one workbook to another workbook!

If you want to reuse a query, this is perfect as you will not need to redo the steps anymore.

We will use the existing workbook from this tutorial of splitting dates. It splits the Order Date into Year, Month and Day.

Split the Date Using Power Query or Get & Transform

We want to reapply this same exact query to our other workbook with this data:

Copy and Paste Queries Across Workbooks Using Power Query

Copy and Paste Queries Across Workbooks Using Power Query | MyExcelOnline

Download excel workbook 1Copy-and-Paste-Queries-Across-Workbooks-With-Query.xlsx

Download excel workbook 2Copy-and-Paste-Queries-Across-Workbooks-No-Query.xlsx

STEP 1: Open the workbook with the existing query.

Go to Data > Get & Transform > Show Queries

Copy and Paste Queries Across Workbooks Using Power Query

 

STEP 2: In Workbook Queries, right click on the Table1 Query and select Copy.

Copy and Paste Queries Across Workbooks Using Power Query

 

STEP 3: Jump over to the workbook that does not have this query yet.

See also  Remove Rows With Errors Using Power Query

Go to Data > Get & Transform > Show Queries

Copy and Paste Queries Across Workbooks Using Power Query

 

STEP 4: In Workbook Queries, right click on the pane and select Paste.

Copy and Paste Queries Across Workbooks Using Power Query

You can now see the same query applied now without even creating the steps manually!

The order date for this table as well has been split to Year, Month and Day!

Copy and Paste Queries Across Workbooks Using Power Query

 

How to Copy and Paste Queries Across Workbooks Using Power Query

 

Free Excel Macros & VBA Webinar Training

 

If you like this Excel tip, please share it
Copy and Paste Queries Across Workbooks Using Power Query | MyExcelOnline Copy and Paste Queries Across Workbooks Using Power Query | MyExcelOnline

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...