Ronderbecke
Board Regular
- Joined
- Oct 4, 2017
- Messages
- 73
I am trying to figure out why the formula I am using doesn't work. Here is what works:
=Query(Calculator!B2:BP,"select * order by B desc")
But I need the "B" to be variable based on a cell so I am using this function which should be exactly the same but doesn't work:
=Query(Calculator!B2:BP,"select * order by '"&indirect("A2")&"' desc")
Any help would be greatly appreciated. Been spending forever trying to figure out why it's not working.
=Query(Calculator!B2:BP,"select * order by B desc")
But I need the "B" to be variable based on a cell so I am using this function which should be exactly the same but doesn't work:
=Query(Calculator!B2:BP,"select * order by '"&indirect("A2")&"' desc")
Any help would be greatly appreciated. Been spending forever trying to figure out why it's not working.