ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Averaging the last 5 entries in a row (https://www.excelbanter.com/excel-discussion-misc-queries/2843-averaging-last-5-entries-row.html)

Geo

Averaging the last 5 entries in a row
 
I have 20 numbers in a row (G34:Z34) I would like to average the last 5
entries. So if I have 10 entries (G34:P34),I would only like to average
(L34:P34) Which is the last 5 entered and continue on averaging the last 5
all the way to (Z34).
--
Geo

Peo Sjoblom

If there are no blank cells in-between you can use

=AVERAGE(OFFSET($G$34,,COUNT($G$34:$Z$34)-1,,-5))

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Geo" wrote in message
...
I have 20 numbers in a row (G34:Z34) I would like to average the last 5
entries. So if I have 10 entries (G34:P34),I would only like to average
(L34:P34) Which is the last 5 entered and continue on averaging the last
5
all the way to (Z34).
--
Geo




JE McGimpsey

One way:

=AVERAGE(OFFSET(G34,0,COUNTA(G34:Z34)-5,1,5))


In article ,
Geo wrote:

I have 20 numbers in a row (G34:Z34) I would like to average the last 5
entries. So if I have 10 entries (G34:P34),I would only like to average
(L34:P34) Which is the last 5 entered and continue on averaging the last 5
all the way to (Z34).


John Mansfield

Geo,

In cell Q34, add the formula "=average(L34:P34)". Then copy that formula
across the range R34:Z34.

----
Regards,
John Mansfield
http://www.pdbook.com

"Geo" wrote:

I have 20 numbers in a row (G34:Z34) I would like to average the last 5
entries. So if I have 10 entries (G34:P34),I would only like to average
(L34:P34) Which is the last 5 entered and continue on averaging the last 5
all the way to (Z34).
--
Geo


Bob Phillips

What is wrong with the answers given in your previous posting?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Geo" wrote in message
...
I have 20 numbers in a row (G34:Z34) I would like to average the last 5
entries. So if I have 10 entries (G34:P34),I would only like to average
(L34:P34) Which is the last 5 entered and continue on averaging the last

5
all the way to (Z34).
--
Geo




Peo Sjoblom

Just to make sure he posted again a third time and wasted Ken Wright's time
as well as

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Bob Phillips" wrote in message
...
What is wrong with the answers given in your previous posting?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Geo" wrote in message
...
I have 20 numbers in a row (G34:Z34) I would like to average the last 5
entries. So if I have 10 entries (G34:P34),I would only like to average
(L34:P34) Which is the last 5 entered and continue on averaging the last

5
all the way to (Z34).
--
Geo







All times are GMT +1. The time now is 04:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com