+ Reply to Thread
Results 1 to 5 of 5

Variable Cell Referenct

Hybrid View

  1. #1
    Registered User
    Join Date
    02-06-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    3

    Variable Cell Referenct

    Hi
    I am using offset to add the last 4 cells, however i want to use a previously calculated cell reference in the offset formula replacing G1 with the return in say F16 example F16 is a calculated cell ref using week number to say which cell to count back from.
    .
    =SUM(OFFSET(G1,0,-4,1,4))

    I want to change G1 to whatever is showing in F16 EXAMPLE L1

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Variable Cell Referenct

    =sum(offset(indirect(f16),0,-4,1,4))
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    02-06-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Variable Cell Referenct

    Thanks for very quick response, i have tried this but get a #REF failure, perhaps because F16 is itself a calculated return. F16 uses week number to determine which field to offset from.
    so f16 is returning say H1

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482

    Re: Variable Cell Referenct

    you need to post example workbook. for me it works if F16 contain L1 or a formula resulting in H1

  5. #5
    Registered User
    Join Date
    02-06-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Variable Cell Referenct

    Sorry it does work, i wrote down wrong box,
    Many thanks for quick response and helpful advice.
    Saved my Sunday Afternoon.

+ 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