+ Reply to Thread
Results 1 to 13 of 13

Offset not working

  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Offset not working

    Hi

    I am trying to get an offset formula to work. I have attached the following spreadsheet. the reason the formula is referencing cells in yellow is because it may change.

    The spread needs to work so that it picks up different data from different tables which on tab 1. So hopefully it picks up the entire range of the table.

    Hopefully I have made it clear, if not I apologise
    Attached Files Attached Files
    Last edited by sput_sput; 08-25-2010 at 02:51 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Offset not working

    Perhaps try, in D3:

    =INDEX(Sheet1!$B$3:$Q$85,MATCH($C$2,Sheet1!$B$3:$B$85,0)+ROWS($A$1:$A1),COLUMNS($A$1:B$1))

    copied down and over the whole matrix.

    To hide the zeroes where there should be blanks, Format all the cells as: 0;-0;;@
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Offset not working

    Thanks, but when Ifinish the data base, there will be multiple tabs which will effect where I look.

  4. #4
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Offset not working

    Try this in D2, copy down then accross the matrix

    =INDEX(OFFSET(Sheet1!$B$3,MATCH(Sheet2!$C$3,Sheet1!$B$3:$B$85,0)-1,1,26,15),MATCH($C$2,Sheet1!$B$3:$B$85,0)+ROWS($C$3:$C3)-1,MATCH(D$2,Sheet1!$C$3:$Q$3,0))
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Offset not working

    You can then introduce the Indirect() function and replace the sheetname in the formula with an indirect reference to the tab.

    e.g

    =INDEX(Indirect("'"&$A$1&"'!$B:$Q"),MATCH($C$2,Indirect("'"&$A$1&"'!$B:$B"),0)+ROWS($A$1:$A1),COLUMNS($A$1:B$1))

    Where A1 would contain the lookup sheet name.

  6. #6
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Offset not working

    When I change the row (B4) and column (B3), it doesn't work. Sorry my entry on Sheet 2 in cell 2 should not be there

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Offset not working

    Who are your referring to?

  8. #8
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Offset not working

    Sorry I was talking to contaminated

  9. #9
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Offset not working

    Ok, i think i didnt explain clearly and i apologise. I have attached another spreadsheet, i have created a list in A1 for sheet tab and A2 for the table on that sheet.

    Hope this helps!
    Attached Files Attached Files

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Offset not working

    Try in D3:

    Please Login or Register  to view this content.
    copied across the matrix

  11. #11
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Offset not working

    Thanks. Thats way above my excel knowledge! if i wanted to as a if statement to show #na so that when i graph this it wont affect it

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Offset not working

    huh?

  13. #13
    Registered User
    Join Date
    01-19-2009
    Location
    England
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Offset not working

    Cheers. i realised i just made a mistake with that last post sorry

+ 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