+ Reply to Thread
Results 1 to 11 of 11

Dynamic Range average

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Dynamic Range average

    hi
    i have a macro that copys and paste a list of number for a month and adds it to new work book. this is run on a month by month basis
    what im trying to do when its run for the first month it averages the list of number in a row and displays them under it.

    but i want it to do it so u dont have to name the cells its looking to avaerage as when we run it for second month the new figures are entered under the last months figure and i neew to avaerage the figures month by month not every number in list

    can this be done if so how

  2. #2
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Dynamic Range average

    like this works for avaeraging the values when it runs once
    Please Login or Register  to view this content.
    but next time it runs it might add on 21 more and i just want the average of them new 21 rows it add and dispalyed after them

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Dynamic Range average

    looking for a counter loop i suppose anyone any ideas

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Range average

    How about...

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 01-12-2013 at 10:32 AM.
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Dynamic Range average

    hi
    does not seem to be writing it out

    also is there a way of changing this line to be dynamic as well as i wont always be writing t to 24 as it could be sorter or longer than 24
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Dynamic Range average

    actually seems to be working but not cal it right

  7. #7
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Dynamic Range average

    it actuallys works had to change from long to double.

    so do u think its possible to write the avaerage without naming the cell field
    l

  8. #8
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Dynamic Range average

    if i try it like this
    Please Login or Register  to view this content.
    then it add it to the first row and im trying to get to it add it after all the rows

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Range average

    How about...

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 01-12-2013 at 01:13 PM.

  10. #10
    Registered User
    Join Date
    12-19-2012
    Location
    dublin ireand
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Dynamic Range average

    hi
    that worked
    thanks so much big help

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Dynamic Range average

    You are very welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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