+ Reply to Thread
Results 1 to 4 of 4

Dynamic Weighted Moving Average

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    48

    Dynamic Weighted Moving Average

    Hi, Ive run into a bit of a problem trying to achieve a dynamic weighted moving average.

    Is what I'm using in a lot of rows, so updating is becoming a bit of a hassle.
    =SUMPRODUCT(BF8:BI8;{1\2\3\4})/10

    So I'd like it be dynamic, always using the last 4 filled cells in that row in the formula.

    What i've got so far is:
    =SUMPRODUCT(OFFSET(INDIRECT(ADDRESS(ROW();9));COUNT(INDIRECT(ADDRESS(ROW();9)&":"&ADDRESS(ROW();300)))-4;;{1\2\3\4})/10

    And it's not working. Do you have an idea how i can solve this issue?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Dynamic Weighted Moving Average

    Try this version for row 8

    =SUMPRODUCT(OFFSET(8:8;0;MATCH(9.99E+307;8:8)-4;1;4);{1\2\3\4})/10
    Audere est facere

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    48

    Re: Dynamic Weighted Moving Average

    Thanks that did the trick! I had to change it to 9,99+307 for it work. Regional issue

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Dynamic Weighted Moving Average

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Weighted Moving Average
    By steven723 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2014, 09:50 PM
  2. Moving Weighted Average formula
    By Ori in forum Excel General
    Replies: 8
    Last Post: 08-22-2011, 12:51 PM
  3. Moving Weighted Average formula
    By magickingdl in forum Excel General
    Replies: 2
    Last Post: 09-29-2008, 01:59 PM
  4. [SOLVED] Weighted moving average
    By Boom1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-01-2006, 05:30 PM
  5. Re: Weighted moving average
    By Boom1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-01-2006, 03:55 PM

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