As an example I have the following:
=AVERAGE(D2:D4) or =SUM(D2:D4) which is the AVERAGE or SUM of 3 values.
I would like to make the number of cells in those formulas variable.
If I specify somewhere 5 that the formulas become
=AVERAGE(D2:D6) or =SUM(D2:D6) which is the AVERAGE or SUM of 5 values.
Is there a way to calculate that cell reference ?
