Is there a way to speed up the editing of hundreds of lines of formulas across many tabs in the same Google Sheet?
This is a followup question to: References changing in Google Sheets with new forms submissions ; which is about every time a new row is added in Google Sheets by a new submission from a Google Forms, some formulas change their references even if they are fixed with $
(Still no idea why that happens). The solution is to add INDIRECT
to the formulas. However, there are too many formulas to comfortably change manually.
For example I have formulas like:
=COUNTIFS('Resp'!$AM$56:$AM,"Conf",'Resp'!$B56:$B,"PC
Arr")
It needs to change to :
=COUNTIFS(INDIRECT("Resp!$AM$2:$AM"),"Conf",indirect("Resp!$B2:$B"),"PC
Arr")
Search and replace wouldn't work because the way formulas are written, and there are quite varied types of formula and referenced columns (although the reference must change from 56 to 2)
and the " '
" in the middles need to disappear.
Is there a way to speed up these changes even a bit or is it inevitable manual labor?
getFormula()
function to fetch the formulas as strings and then change them. – ADW