

Check Use original column name as prefix.Press the small double arrow icon in the right hand side of the column heading.Type this formula Excel.Workbook(,true) into the formula area.Įxpand the new column to show all the items in the Content.Name the new column something like GetFileData.Now you will need to add a column to bring the content into the query. Select Remove Columns from the drop down menu.You can remove the resulting column containing the extension part of the split file name.

This will only split the file name text using the right most period found (ie just before the file extention xlsx). Next, select any of functions you wish to utilize to condense your data from the Function box. Second, click Consolidate, under the Data Tools category.

The From Folder query will include a lot of data such as file extension type, date modified, file location, etc. Step 2: Remove data columns that aren’t needed Check these are the correct files and folders. A preview of the import data will appear.Select the folder path of the files you want to import.Ĭheck the preview data to ensure it is in the correct folder and files.Select From Folder in the drop down menu.Each sheet contains the sales for a given salesperson from the country and is named with the sales person’s name.Īs you can imagine, aggregating the data manually would be very time-consuming as the number of files and sheets grows. Ireland.xlsx, England.xlsx, Luxembourg.xlsx, and Canada.xlsx).Įach file has several sheets with different data in the same format. Each file contains the sales for a given country and the files are named according to which country the sales data is from (i.e.
