![how to get power query in excel how to get power query in excel](https://support.content.office.net/en-us/media/382d6d96-54a8-49bc-8b58-7dffa23f3a42.png)
In the Custom Column window to enter the following settings:Ĭustom column formula: =Excel.Workbook()Ĭlick the Expand icon on the ExcelFile column to drill into each file. Your Preview Window might look like this.
![how to get power query in excel how to get power query in excel](https://tanducits.com/images/image-20200518093655-15.png)
Filter to include only the Excel files you’re interested in. Follow the steps above to navigate a folder containing Excel files. Worksheet attributesĪttributes don’t finish at the file level either. Once you have this list, you can decide what to keep and what to delete. Using this method, you can quickly identify the largest file sizes, or the files which have not been opened recently, or duplicate file names. Imagine that your disk space is getting low. Read-only – whether the file is currently set to Read-Only.I’m not going to lie... I have no idea what some of these attributes are, but others very useful, such as: The Attributes column in the Preview Window provides access to lots of other information.Ĭlick on the expand icon in the header of the Attributes column, then click OK to see the file attributes. In the section above, we saw some file attributes, mostly based on dates, but this is just the start. The Preview window shows a list of all the files and folders.Ĭlick Home -> Close and Load to push the data into Excel. On the Merge Columns window, choose no separator and click OK.Ī new column is created with the complete file path. Move the Name column to the end, then select the Name and Folder Path columns, click Add Column -> Merge Columns. The Power Query Editor opens and shows some useful attributes: When the list of documents opens click Transform Data. In the Folder window click Browse…, navigate to the folder then click OK. In Excel, click Data -> Get Data-> From File -> From Folder.
![how to get power query in excel how to get power query in excel](https://excelunlocked.com/wp-content/uploads/2020/11/Power-Query-Editor-Window-with-Table-Data.png)
List all the files in a folder (and sub-folders) However, in Power Query, we now have the easiest method of all. These posts still receive lots of search traffic from Google, so I know this is an area which users are interested in.
#HOW TO GET POWER QUERY IN EXCEL HOW TO#
I have previously written posts about how to list all the files in a folder using VBA and also using a legacy Excel 4 function. While focusing on this aspect, we skipped over another useful part of Power Query which is being able to obtain a list of all the files in a folder, and sub-folders, along with the file attributes. In the last post, we saw how to import all the files from a folder, which is a fantastic time-saving technique.