I need to calculate average from the last 20 values entered in column K.
I already learned I can find the last entered value by using this:
=address(max(match(1e99; K:K)); 11; 4; 1)
Which is gonna be my average end, and I can find my average start with this:
=address(max(match(1e99; K:K))-20; 11; 4; 1)
My question now is, how can I use both adresses to create an average formula? This is spreadsheet is getting new values everyday, so cell address will be diferente each day.
For example, those two formulas will produce: K424 and K404 respectively.
So I need to create a average formula which work like:
=average(K404:K424)
By using those prior formulas results. I dont have the option to type numbers I get from those formulas.
I tried this, but didnt work:
=average((address(match(1e99; K:K))-20; 11; 4; 1)):(address(match(1e99; K:K)); 11; 4; 1)))
If I try:
=average((address(match(1e99; K:K))-20; 11; 4; 1))&":"&(address(match(1e99; K:K)); 11; 4; 1)))
I get#VALUE