lynnet
New member
- Joined
- Dec 28, 2023
- Messages
- 5
- Reaction score
- 0
- Points
- 1
- Excel Version(s)
- Office365
Hi all,
So I am trying to create a query that will pull content from a folder containing multiple Excel files. I only want the content of tabs within those files that have a name that appears on a master list I've created. Let's say that the source files have a variety of content, but I only want to pull from tabs in any of the files that are called either "DATA" or "IMPORT"... but I need that list to be able to be maintained/dynamic so I can add to it if necessary, e.g. "UPLOAD".
I found this YouTube video which perfectly achieves it:
... and I have been able to replicate it, if I create the master list of tab names 'directly' using "Enter Data" into a query as follows:
= {"DATA", "IMPORT"}
I've called that list "Tabs".
However, if I create a list on the face of an Excel tab in the workbook (for easy maintenance), query that, convert it to a List and call it "Tabs2", and then change the reference for the lookup from "Tab" to "Tabs2", the main query breaks. The list of values that was previously saying "Table" and could be expanded, switches to hard code, the word 'Table' between square brackets, and can no longer be expanded.
Any ideas on why this might be please? Thank you!
So I am trying to create a query that will pull content from a folder containing multiple Excel files. I only want the content of tabs within those files that have a name that appears on a master list I've created. Let's say that the source files have a variety of content, but I only want to pull from tabs in any of the files that are called either "DATA" or "IMPORT"... but I need that list to be able to be maintained/dynamic so I can add to it if necessary, e.g. "UPLOAD".
I found this YouTube video which perfectly achieves it:
... and I have been able to replicate it, if I create the master list of tab names 'directly' using "Enter Data" into a query as follows:
= {"DATA", "IMPORT"}
I've called that list "Tabs".
However, if I create a list on the face of an Excel tab in the workbook (for easy maintenance), query that, convert it to a List and call it "Tabs2", and then change the reference for the lookup from "Tab" to "Tabs2", the main query breaks. The list of values that was previously saying "Table" and could be expanded, switches to hard code, the word 'Table' between square brackets, and can no longer be expanded.
Any ideas on why this might be please? Thank you!
Last edited: