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.
We want to reapply this same exact query to our other workbook with this data:
STEP 1: Open the workbook with the existing query.
Go to Data > Get & Transform > Show Queries
STEP 2: In Workbook Queries, right click on the Table1 Query and select Copy.
STEP 3: Jump over to the workbook that does not have this query yet.
Go to Data > Get & Transform > Show Queries
STEP 4: In Workbook Queries, right click on the pane and select Paste.
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!
How to Copy and Paste Queries Across Workbooks Using Power Query
Bryan
Bryan Hong is an IT Software Developer for more than 10 years and has the following certifications: Microsoft Certified Professional Developer (MCPD): Web Developer, Microsoft Certified Technology Specialist (MCTS): Windows Applications, Microsoft Certified Systems Engineer (MCSE) and Microsoft Certified Systems Administrator (MCSA).
He is also an Amazon #1 bestselling author of 4 Microsoft Excel books and a teacher of Microsoft Excel & Office at the MyExecelOnline Academy Online Course.