+ Reply to Thread
Results 1 to 2 of 2

Moving average across variable range

  1. #1
    Registered User
    Join Date
    10-03-2013
    Location
    Vancouver
    MS-Off Ver
    Excel
    Posts
    1

    Moving average across variable range

    Hi everyone, I am starting to use excel in a much more advanced way than i usually do, and have hit a wall. I don't really have the vocabulary to properly describe what I'm trying to do.

    Essentially, I have a series of values that are attached to depths down a hole. I want to create a moving average of these values. Now, I can generate a moving average of, for example, nine values, four above and four below the centre point. However, what I need to do is create a moving average by DEPTH. So create a moving average of a varying number of cells, which all lie within a 3 metre interval centred on each row.

    I need to create a formula that will interrogate all of the depths, compare them to the interval depth, and ascertain whether they are -1.5>0<1.5, and if so, sum the associated values so they can be analysed. (it'll obviously have to ignore the centre row though, otherwise it'll add it to itself, I think...)

    The example layout (sorry for the crappy paste, not sure how to make it prettier) is:

    Depth ALPHA
    44.38 23
    44.43 83
    44.73 83
    45.09 31
    46.88 50
    46.99 82
    47.12 82
    47.24 73
    47.28 78
    47.4 83
    47.59 22
    52.78 80
    52.94 80
    53.17 61
    53.24 70
    53.65 61
    53.72 78
    54 23
    54.1 34
    54.33 21

    So what I want to do, ultimately, is generate a moving average of Alpha, for the three meters surrounding where it was measured...

    Even if you don't know the solution, if you can advise the name of what I'm trying to do that'd be a big help.

    Thanks, in advance!
    Attached Files Attached Files
    Last edited by SRKfc; 10-03-2013 at 06:17 PM. Reason: added example

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Moving average across variable range

    You get better help on your question if you follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ 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] Copy range from multiple sheets, into a master sheet and moving over by variable col range
    By g1eagle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2012, 01:36 PM
  2. How to calculate sum of a moving range and average it
    By a_driga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-27-2011, 02:17 AM
  3. Fixed Range last 4 weeks moving average
    By matt4003 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2007, 03:26 PM
  4. Moving Average input range display
    By SER01 in forum Excel General
    Replies: 15
    Last Post: 04-01-2007, 11:29 PM
  5. MOVING A VARIABLE RANGE
    By sylink in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2006, 05:00 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