Hi,
Could anyone help please I have a grid example below, I need to know the average for the last 3 numbered cells in each row? which will change weekly
Week 1 Week 2 Week 3 Week 4 Week 5 Week 6
A 157 621 142 458
B 150 155 90
C 456 568 584 452
Hi,
Could anyone help please I have a grid example below, I need to know the average for the last 3 numbered cells in each row? which will change weekly
Week 1 Week 2 Week 3 Week 4 Week 5 Week 6
A 157 621 142 458
B 150 155 90
C 456 568 584 452
One way...
where A1:Z1 is your first row range... you can replace with 1:1 if you want to include entire row.![]()
Please Login or Register to view this content.
formula can be copied down.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
With your posted data in A1:G4
This formula returns the average of the last 3 consecutive values in B2:G2:
Is that something you can work with?![]()
Please Login or Register to view this content.
Thanks works a treat
Originally Posted by Ron Coderre
oOOPS.
Don't know why I didn't think of using a range instead of 3 arguments...
Mine would then be:
![]()
Please Login or Register to view this content.
I prefer the OFFSET functionChemistB![]()
Please Login or Register to view this content.
That's a possibility...with the following caveat:Originally Posted by ChemistB
The OFFSET function is volatile, so every cell containing OFFSET recalculates
whenever *any* cell in the workbook recalcs. There is a threshhold where
the workbook becomes annoyingly sluggish. Consequently, I only use
OFFSET sparingly and only when necessary.
This is my latest list of volatile functions:
RAND, NOW, TODAY, OFFSET, CELL, INDIRECT
Thanks Ron, I will definitely remember that when working with Offset in the future. Question: What if Offset is used in a defined name? Does it have the same problem?
Thanks
ChemistB
I believe the problem still exists when the OFFSET function is used in a
defined name. However, by keeping the use of volatile functions to an
absolute minimum, the impact should be negligible.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks