Forum Discussion
danextian
9 years agoSuper User
Exclude from refresh certain files for a folder data source
Hi All, I thought that it would be simpler to just connect to a folder instead of connecting to multiple files one by one and then appending them to a new query. It worked fine but I realized tha...
- 9 years ago
Well, I ended up separating my data sources into current and old folders. Thanks for this.
mozuliov
8 years agoNew Member
Hi, danextian,
Here is what I came with for Excel files... When you put files in the folder you intend to read from you need to define names for data ranges you want to read data from. You can come with the same name in each file (e.g. "Data"). In your query you include all files, add column with Add Column->=Excel.Workbook([Content]) and expand Names and Data fields. Among Names you will be able to select just "Data" areas to read for your query. Obviously, if you work with CSV or Text files that solution would not work since those do not have data ranges...