Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9701

Fetching sheet name dynamically in google sheet

$
0
0

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


Viewing all articles
Browse latest Browse all 9701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>