I am having 2 google sheet called 'Repository' and 'Order'. Repository file have many sheets like Note, Books, Stationery, Etc. Each item have a unique code. I have to fetch description and price of an item based on code from 'Repository' to 'order'. I have used vlookup and importrange for this.
VLOOKUP(B2,IMPORTRANGE("File Url","Note!A2:D100"),2,false)
VLOOKUP(B2,IMPORTRANGE("File Url","Books!A2:D100"),2,false)
Is it possible to use single formula for this by changing sheet name dynamically so that item will be fetched across all sheets in 'Repository '?
I used named range along with INDIRECT
VLOOKUP(B2,IMPORTRANGE("File Url","INDIRECT ("'"&SheetList&"'!"&"A2:D100"),2,false)
Sheetlist is a named range in 'Repository' which would be Note,Book,Etc..
I am getting #Name? Unknown range name 'SheetList'
Am I doing it wrong way? Is there any way to fetch sheet names dynamically? Kindly help me to get out of it. Thanks in advance