+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Merge row index with a cell reference

Hybrid View

  1. #1
    Registered User
    Join Date
    04-18-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Merge row index with a cell reference

    Hi I am trying to use an Average function but I am a bit confused with the syntaxis.

    =AVERAGE(D2:D & 'C2')

    Cell c2 has a numeric value, which I want to put next to D. Say range d2:d5 but instead of 5 I want to put a reference to cell c2 which returns the value of 5. So whenever c2 changes Average also changes. Thanks a lot in advance.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Merge row index with a cell reference

    Hi Div111
    Welcome to the forum,
    you can use indirect to return the value/reference of a string
    =AVERAGE(INDIRECT("D2:D"& C2))
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    04-18-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Merge row index with a cell reference

    Thanks a lot Pike! it really helps

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Merge row index with a cell reference

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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