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

Google Sheets - Refer Filter range to a cell?

$
0
0

I have this formula (simplified because it is long):

=FILTER(RANGE1,(C3=TRUE), RANGE1<>"")

In place of range can I refer to the cell , AC2, that would contain the range name?That is because I have 2 ranges, Range1 & Range 2. If user selects Range1 then execute for that range, or if user selects Range2, execute filter to that range.enter image description here

Something like this...

=IFS(AC2="Range1", *filter function*, AC2="Range2", *filter function*)

This is because I want the filtering range to change with the users' selection.I tried just referring to that cell K2, but got an error.Then I put an IF condition instead of range in the filter criteria, but none worked.


Viewing all articles
Browse latest Browse all 9787

Trending Articles



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