+ Reply to Thread
Results 1 to 6 of 6

Average over a dynamic range of values in a different worksheet

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Red face Average over a dynamic range of values in a different worksheet

    Hi,

    My problem is this:

    I want to use the Range("E1"). Formula = "Average..." formula to calculate a dynamic average on another worksheet in the same workbook. The range will be determined by what users enter into a specific cell. And though the column of data (E) is the same it is the rows that change. I can do this easily using the formula:

    Please Login or Register  to view this content.
    However, when this runs it doesn't display the function in the cell on the worksheet and for transparency this is what I need.

    Is this clear? I really hope someone can help as I'm pulling my hair out looking for solutions on the web.

    Many thanks in advance.
    Last edited by Cutter; 10-29-2012 at 05:29 PM. Reason: Added code tags

  2. #2
    Registered User
    Join Date
    10-24-2012
    Location
    Budapest
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Average over a dynamic range of values in a different worksheet

    Why don't you use formula?


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Average over a dynamic range of values in a different worksheet

    Thanks YvorL

    That's exactly what I wanted to do but couldn't figure out where all the &"" signs went. So thanks for that, I just have one more query.

    Currently I have a line of code to autofill the average values acroos columns E-AC underneath this. However with the new line of code (as provided by you) it autofills the same value in all columns, as the dollar signs are on columns and rows. Do you know how to remove them from the columns? Or, will I need to loop through all columns to achieve this?

    Code is:

    Please Login or Register  to view this content.
    Last edited by Cutter; 10-29-2012 at 05:29 PM. Reason: Added code tags

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Average over a dynamic range of values in a different worksheet

    @ MummyB

    Welcome to the forum.

    Please notice that [CODE] tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Average over a dynamic range of values in a different worksheet

    Apologies. I didn't know how to do this, but think i have it now.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-24-2012
    Location
    Budapest
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Average over a dynamic range of values in a different worksheet

    Hi!

    Often when I have to use something like this I use:

    Please Login or Register  to view this content.
    so something like this should work:
    Please Login or Register  to view this content.
    Note: Column() will be the cells own column, so if you calculate average of column A in column B you have to use formula:
    Please Login or Register  to view this content.
    Also you can use some sort of loop.

+ 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