mountainman88
Board Regular
- Joined
- Jun 22, 2019
- Messages
- 109
- Office Version
- 2016
- Platform
- Windows
I want to generate the following string: "Col x, Col y, Col x, Col z, Col aa, Col ab, Col ac, Col ad, Col ae" which is a list of consecutive excel columns prefixed with 'Col ' and separated by commas.
How can I generate this in a formula using only the first and last value? ie z and ae. I'd like this to work for any consecutive set of columns in excel. Bonus if the formula also works in google sheets.
The purpose is to generate the string for a google query formula, if there is an easier way please let me know.
Thanks!
How can I generate this in a formula using only the first and last value? ie z and ae. I'd like this to work for any consecutive set of columns in excel. Bonus if the formula also works in google sheets.
The purpose is to generate the string for a google query formula, if there is an easier way please let me know.
Thanks!