![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 1
|
How do I format a cell to average the last 12 entries. So that I can have a monthly average for the the last 12 months. I enter new data in the next cell for the previous month. At this time I have to change the formula every month. Is there a way to have the cell range change automaticly when I enter a new month?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: St. Louis
Posts: 71
|
What I do is set up separate sheets:
Sheet 1 contains the data entry without average formulas. Sheet 2 contains a table that calculates the 12 month floating average. Sheet 3 contains the finished report with the floating averages. It uses lookup formulas to populate data fields and floating averages by referencing tables 1 and 2. Hope this helps Dexter |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
=AVERAGE(OFFSET($A$1,MATCH(9.99999999999999E+307,A:A)-12,,12))
will average the last 12 cells in column A. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|