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

How to reference named range as sheet name in query function?

$
0
0

=QUERY(ActiveMonth!A7:L,"select A,D where K matches 'Admission|Pending'",0)

I am using sheets name/tabs (January, February.. December).ActiveMonth is a namedRange of a cell containing the Month Name (A1). I want to query the tab with the activeMonth name. If the ActiveMonth (A1) is January then the formula will run as =QUERY(January!A7:L,"select A,D where K matches 'Admission|Pending'",0).


Viewing all articles
Browse latest Browse all 9624

Trending Articles



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