+ Reply to Thread
Results 1 to 9 of 9

Rolling Average

  1. #1
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Rolling Average

    I need the a macro or cell formula to give me a rolling average of the cells. The following information is how the sheet is setup.

    Average will always be on the bottom line. So one line above it is the last number needed. The first number needed will always be on line 11.
    New data is inserted each day so all of the rows shift down one row but row 11 will always be the current days entry.

    Tried explaining an example of how it is setup below. Please help me get this rolling average to work. I think I can use top and bottom references in a macro with an average but need your help.

    Example

    line 11 has 20
    line 12 has 30
    line 13 has 25
    line 14 has 30
    line 15 is average

    I enter the new data today
    line 11 has 33
    line 12 has 20
    line 13 has 30
    line 14 has 25
    line 15 has 30
    line 16 has average

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,158

    Re: Rolling Average Please Help

    Hi cory0789

    How is the new data(no's) entered....via code, manual input, from a textbox, comboBox ?
    Is the average the sum of all rows divided by the no of rows?

    If so, give this a try
    Please Login or Register  to view this content.
    Last edited by sintek; 04-20-2017 at 02:10 PM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Rolling Average Please Help

    The current information is entered on line 10 and then when submitted adds a new row for line 10 and moves the data down a row.

    I need it to do this from column A through BB.

    I will work with your code to see if I can make it work but if you have an easier way doing it all the way across that would be great

    I cannot figure out how to make variables to make it go all the way across the worksheet... need more advice on this please
    Last edited by cory0789; 04-20-2017 at 02:40 PM.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,158

    Re: Rolling Average Please Help

    Have all the columns got the same amount of lines or does each column get populated individually. A sample workbook depicting a before and after will be very helpful.

  5. #5
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Rolling Average Please Help

    all are the exact same all the way across. so should be able to use variables the way you did it all the way across I would think. I just cannot figure out how to make it work.

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Rolling Average Please Help

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Rolling Average Please Help

    It did it for column 1 but did nothing after that.

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Rolling Average Please Help

    Hello cory0789,

    As sintek has suggested in Post#4,

    Please attach a sample workbook. we don't like to create a workbook on assumptions to get the a possible guessing solution.

    Make sure there is just enough data to demonstrate your need.

    Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,158

    Re: Rolling Average Please Help

    Here you go, this has been tested and works.
    Please Login or Register  to view this content.
    Last edited by sintek; 04-20-2017 at 03:59 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Rolling Average
    By T15K in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2013, 06:38 PM
  2. [SOLVED] 5 Day rolling average
    By spazzcdnm in forum Excel General
    Replies: 3
    Last Post: 07-17-2012, 04:27 PM
  3. Rolling average
    By gth8991 in forum Excel General
    Replies: 3
    Last Post: 10-03-2011, 11:57 AM
  4. Rolling Average
    By Skee in forum Excel General
    Replies: 9
    Last Post: 04-19-2009, 02:39 PM
  5. rolling average
    By William Okumu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-25-2006, 10:49 AM
  6. [SOLVED] Rolling 3 mth Average
    By dallin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2005, 12:15 PM
  7. Rolling Average
    By Bearcats_85 in forum Excel General
    Replies: 7
    Last Post: 07-19-2005, 11:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1