+ Reply to Thread
Results 1 to 7 of 7

Need help averaging cell that have a variable range

Hybrid View

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Need help averaging cell that have a variable range

    Hi all,

    Sorry if this has been asked before but i couldn't find it anywhere.

    I need to average the cells in column J starting at row 62 but ending at a variable cell on lets say sheet1. The amount of cells below 62 needed to be averaged is a know number and is stored on another worksheet named sheet2 A1. for example i might need to average the next 24 cells below row 62 which would be row 86 but this can change, i cant just simply average the whole column either as the data i need is in between two zeros which skew my results and needs to be precise. i have tried using the index function but im not too familiar how it works and cant seem to find anyway to be able to change the amount of cells averaged.

    thanks in advance.

    EDIT: attachment Book2.xlsx
    Last edited by jazzsam; 07-29-2014 at 09:52 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,725

    Re: Need help averaging cell that have a variable range

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need help averaging cell that have a variable range

    Thank you, I've edited the OP

  4. #4
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 365
    Posts
    160

    Re: Need help averaging cell that have a variable range

    In any empty cell such as G57, enter:
    ="G62:G"&Sheet2!A1
    In Sheet2, A1, enter
    84

    (G57 will now display G62:G84.)

    Finally, your average is:
    =AVERAGE(INDIRECT(G57))

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need help averaging cell that have a variable range

    I think i may not have been too clear with my question but i think this will work, i should be able to add into Sheet2 A1 62 + (the variable cell range) and get this to work for me.

    Thank you, i never would have thought to do that

  6. #6
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: Need help averaging cell that have a variable range

    Hi jazzsam!
    You can solve your problem simply with the Offset() function. Try this formula.
    Formula: copy to clipboard
    =AVERAGE(OFFSET(Sheet1!$J$62,,,Sheet2!$A$1))

  7. #7
    Registered User
    Join Date
    03-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need help averaging cell that have a variable range

    Damn, that offset looks so simple. I wish i knew more about excel, the more i use it the more i realise how amazing it is. I tend to do a lot i VBA but theres so many simple solutions in excel th work wonders. Cheers

+ 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. averaging variable range of cells
    By wiganda in forum Excel General
    Replies: 0
    Last Post: 09-22-2010, 05:05 PM
  2. averaging variable range of cells
    By wiganda in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2010, 05:02 PM
  3. function for averaging over variable cell range
    By symmsie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-03-2010, 09:28 AM
  4. Averaging Variable Ranges
    By freud1 in forum Excel General
    Replies: 2
    Last Post: 04-16-2010, 05:34 AM
  5. Variable averaging span question.
    By Anthony01803 in forum Excel General
    Replies: 3
    Last Post: 03-05-2010, 03:57 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