In this article, you will learn how to get dynamically filtered data from one worksheet to another using Microsoft Query.
Let us understand with an example:
We have Sales Report for US States for each year.
The idea is to filter the data in Master workbook for years greater than or equal to 2010. If we will do this step manually, we will not get the updated data as modify or enter new rows of data in Master workbook.
You need to follow the below steps to get result:
From Get External Data group, click on Other Sources & then select From Microsoft Query
The data on the Output sheet will show data from year 2010 onwards, and this will be linked to the Master workbook. Even if you add rows in the Master file or modify the data; now in Output sheet, you need to click on Data tab & click on Refresh All
The result would be updated automatically in the Output sheet.
In this way, you can get the updated values automatically using Microsoft Query, meeting certain criteria.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.