Try this:
[pre]
"[select(""r1c1:r" || strip(put(lastrow,3.0)) || "c1"")]"
[/pre]
Double every double quotes you wish to be represented within the string.
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!