+ Reply to Thread
Results 1 to 5 of 5

Easier way to reference other cells for the end and start points for average formulas?

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Easier way to reference other cells for the end and start points for average formulas?

    Hello,
    Is there an easier way for me to do the following:
    =AVERAGE(F4:F24)
    But the start and end point values change depending on the worksheet.

    So I end up having seperate reference cells for the start and end point values, 4 and 24 in this case.

    My formula ends up looking like this, but it seems way too complicated:
    =AVERAGE(INDIRECT(ADDRESS(INDIRECT(ADDRESS(1,1)),6)):INDIRECT(ADDRESS(INDIRECT(ADDRESS(2,1)),6)))
    A1=4
    A2=24

    I have row / column functions set up also so I can add rows and columns as necessary, just curious if there's a different or better method of doing this.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Easier way to reference other cells for the end and start points for average formulas?

    Hi and welcome to the forum

    hard to offer suggestions without seeing any samples Perhaps take a look at using OFFSET() or upload a sample workbook
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Easier way to reference other cells for the end and start points for average formulas?

    If it is going to be column F where the data is located, then you can do this:

    =AVERAGE(INDIRECT("F"&A1&":F"&A2))

    If you put the column letter in A3, then you could have this:

    =AVERAGE(INDIRECT(A3&A1&":"&A3&A2))

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    02-27-2014
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Easier way to reference other cells for the end and start points for average formulas?

    Thanks this helped a lot.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Easier way to reference other cells for the end and start points for average formulas?

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. average cells with formulas in them
    By rjassal in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-31-2013, 06:16 AM
  2. Replies: 10
    Last Post: 04-25-2013, 06:12 PM
  3. Replies: 2
    Last Post: 06-10-2011, 03:33 PM
  4. Replies: 4
    Last Post: 05-30-2008, 10:39 AM
  5. Average function with #VALUE! error in reference cells
    By Larry4500 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-16-2006, 05:50 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