# Averaging numbers

#### PMRetired2012

##### New Member
I have a row of 10 numbers and each week i add numbers. What i want to do is have a formula that will average the last 4 numbers in that row of numbers when i add numbers to the row of numbers. So what im saying is i want to be able to always adverage the last 4 number that have been entered.

Thanks

#### sapionapio

##### New Member
Hi

=AVERAGE(INDEX(A:A,COUNT(A:A)),INDEX(A:A,COUNT(A:A)-1),INDEX(A:A,COUNT(A:A)-2),INDEX(A:A,COUNT(A:A)-3))

Have a nice day!

#### PMRetired2012

##### New Member
What do I put in the part that says A1:A1 and also does the -1 mean the last 4 numbers to be averaged? So my row of numbers to adverage is b3 thru b13 should that go where the A1:A1 is? And if I want it to adv the last 4 which would be b10 thru b13 would I use -4 instead of -1?

Thanks

Another option.
Excel Workbook
ABCD
1
2Data
345Average
436last 4
525
636
721
812
958
1069
1154
1256
1325
 Sheet

1,081,578
Messages
5,359,740
Members
400,545
Latest member
Damntheman30

### This Week's Hot Topics

• VBA (Userform)
Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
• List box that changes fill color
Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
• Remove duplicates and retain one. Cross-linked cases
Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
• VBA Copy and Paste With Duplicates
Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
• Macro
is it possible for a macro to run if the active cell value is different to the value above it
• IF DATE and TIME
I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...