+ Reply to Thread
Results 1 to 6 of 6

average formula for dynamic range

  1. #1
    Registered User
    Join Date
    01-01-2013
    Location
    melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    55

    average formula for dynamic range

    hi need to know the notation for this

    Please Login or Register  to view this content.
    where A1 is really RC[-1] and the average range changes in length.
    Last edited by rossg; 03-01-2014 at 07:15 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: average formula for dynamic range

    May be this....

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    01-01-2013
    Location
    melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: average formula for dynamic range

    no sorry dont think it'll work.

    formula = "previous column same row" - AVERAGE($A$2:'could be any length')

    code looks more like this
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: average formula for dynamic range

    Hi

    First create a dynamic range name say MyRange for your column A values. e.g

    Range('Sheet1'!$A$1,0,0,Counta($A:$A),1)

    Now the VBA is

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    01-01-2013
    Location
    melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    55

    Re: average formula for dynamic range

    thanks got it working

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: average formula for dynamic range

    Great. Glad to have been able to help.

+ 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. Dynamic Range and Average Formula
    By molfetta55 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2014, 09:54 AM
  2. Dynamic Range average
    By rjhe22 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-12-2013, 03:42 PM
  3. [SOLVED] Average of last 3 cells in a range, dynamic
    By Armitage2k in forum Excel General
    Replies: 11
    Last Post: 03-25-2012, 02:48 PM
  4. Excel 2007 : Dynamic range/average issue?
    By gannon_w in forum Excel General
    Replies: 5
    Last Post: 02-26-2012, 10:42 PM
  5. Dynamic range in average formula
    By Cicada in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-09-2011, 02:08 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