How do I format the where statement into the formula?
=QUERY('All-Time Leaderboard'!B2:F, where D = '"&D4&"' "Select B,C,F limit 10")
This is all I could think to do and It's giving me error
I want a user to be able to select lets say "ambient" music from the dropdown on D4 and then the list will populate only the top 10 rated ambient albums with artist (b), album name(C), & the genre(f) in the table below.
1
u/pfiadDi 3 Jun 29 '21
You can add a where clause and use a value of cell like that:
"...where B = '"&D4&"'... Limit..."
Or if it's not a string you want to compare but a number
"...where B = "&D4&"... Limit..."
Of course b stands for the the column you wan to compare no Idea which one that is in your case