EONE BLOG

Tech Tuesday: Using Power Query to Merge Worksheets for the Excel Addin


If you have multiple sheets in an Excel file that need to be integrated with the SmartConnect Excel Addin, this process will help to get all the data into one sheet for the addin.

In Excel, the first step is to create a data connection for each sheet containing the data we need. 

  1. Select any cell in the data needed and click the From/Table Range button on the Data tab.


  2. This will define a table in Excel. It should pre-populate with the correct cells for the data.  Mark the checkbox for table headers.


  3. Power Query Editor will open with the data from the table. In the Query Settings change the Name to something to represent your data.


  4. Click on Close & Load to…


  5. Choose Only Create Connection and click OK


  6. This will create a connection to the table on our first sheet. Repeat these steps for your second sheet.

Once you have created data connections for both sheets we will merge them into one.

  1. From the Data tab, choose Combine Queries>>Merge.


  2. On the Merge window, select the first connection (Items in the screenshot) on the top dropdown and select the second connection (PriceList in the screenshot) on the second dropdown. Click the key field from each connection to define how they will be joined.  The key field will be highlighted.  Set the Join Kind as needed.  In this case I want records that are in both sheets so I’m choosing Inner.


  3. Power Query Editor will open again. Name this merged query accordingly.
  4. Initially you will see records from your first table. Click the header for the second connection to display which columns to display from the second sheet.


  5. This will finish the setup and bring in all the data from both sheets. Click Close & Load to bring the merged data into a new Excel sheet.


  6. Rename the Sheet as this will be the sheet chosen when using the Excel Addin.

The tables and queries that were initially created are dynamic, so any new records added to the individual sheets will automatically load into the merged sheet when refreshing all the data sources in the workbook. 

Use the merged sheet in the SmartConnect Excel Addin configuration and the SmartConnect map that will be used for your integration.

Have questions? Send the eOne team an email at support@eonesolutions.com. 

Leave a Comment




RECENT POSTS


Join Us for Our Q4-2018 Partner All-Hands Call
Directions EMEA 2018 Recap
Tech Tuesday: How to manually activate and deactivate SalesForce Apex Triggers
Integrate to Dynamics GP with Excel Templates
Checklist – 7 Ways to Ensure Your Salesforce and Microsoft Dynamics Integration Exceeds Expectations

POPULAR POSTS


2016 SmartConnect Integration Bootcamps
Tech Tues: Automatically refreshing Pivot Tables in Excel Refreshable Reports
Happy Thanksgiving from the eOne team!
New Releases of Extender and SmartList Builder
2017 SmartConnect Integration Bootcamps

CATEGORIES

ARCHIVES

open all | close all

TAGS

CRM Demo Dynamics Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News eOne Spotlight ERP Events Excel Excel Report Builder Extender Extender Enterprise Flexicoder GP GPUG integration integration manager Meet the Team Microsoft Microsoft dynamics crm Microsoft Dynamics GP MSDYNGP Office Relationships partners release SalesForce SalesForce.com scripting SmartConnect SmartList SmartList Builder SmartList Designer SmartView SQL Support Tech Tuesday Templates training Zendesk

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.