TL;DR: why is REGEXEXTRACT(ADDRESS(1, COLUMN(Q:Q)), “[A-Z]+”) (and it’s clones) used, when “Q” would be much cleaner.
I’d like to expand the functionality of the YTD sheet, to include the current months performance against budget. In general, I’ve found the worksheet pretty easier to decipher, but I’m a little mystified by the copious use of the construct "REGEXEXTRACT(ADDRESS(1, COLUMN(Q:Q)), “[A-Z]+”)”, which is used when assembling the main QUERY lookup in cell A10. It used in many, many places, but always with literal values. In this particular example, it evaluates to the text string “Q”. I thought it might be a way to some kind of range check on the column, but that doesn’t work: for instance even if the spreadsheet only goes up to column Z, if you do REGEXEXTRACT(ADDRESS(1, COLUMN(AA:AA)), “[A-Z]+”), It would still return AA.
I’d like to ditch this construct for my own customization to make the formula more readable, especially since I’ll be returning additional columns, but I want to avoid subtle unintended consequences. I’m hoping someone can shed some light.
Thanks in advance,
Arthur