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).
Choose By Delimiter in the drop down menu.
Since the file naming convention is pretty simple (Country Name.xlsx), you can use the split column function using a period as the delimiter. To get the country into the data, you will need to parse the text in the file name.
Select Remove Other Columns from the drop down menu.
Hold the Ctrl key and left click on the column headings to select them.
Select the two columns you don’t need ( Content and Name).
These are not needed for the purposes of combining data. 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.