+ Reply to Thread
Results 1 to 3 of 3

Linking a range in a formula to other cells

  1. #1
    Registered User
    Join Date
    07-09-2009
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2007
    Posts
    21

    Linking a range in a formula to other cells

    I want a cell to calculate the average of a range of numbers in the same column. However I want that range to depend on the values of other cells.

    So for example I want the formula in C1 to be: =average(C&value(A1),C&value(a2))

    So if A1 = 3 and A2 = 5 then the fomula for C1 would become =average(c3:c5)


    Is there any way to do this without a Macro?

    I hope that makes sense!

    Thanks.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Wierd Question: Linking a range in a formula to other cells

    try

    =average(indirect("C"&A1),indirect("C"&a2))

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Linking a range in a formula to other cells

    Or, if preferred in Non-Volatile form (using INDEX):

    =AVERAGE(INDEX(C:C,A1):INDEX(C:C,A2))

+ 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