+ Reply to Thread
Results 1 to 3 of 3

Offset from the location of another cell

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    8

    Offset from the location of another cell

    Is there any way to use the offset formula in reference to the location of another cell?

    Here is a simplified version of my problem:

    Sheet1!A1 refers to Sheet2!A1.
    Sheet1!B1 refers to Sheet2!D1.
    Sheet1!C1 refers to Sheet2!E1.

    Is there any way that I can say that Sheet1!A1=Sheet2!A1 and then use the offset formula based on the location referenced in Sheet1!A1? The cells being referenced are merged cells one column wide and varying rows long, so there is no real pattern to follow except that the corresponding cells (the ones that I want to use the offset formula on) are all taking up the same amount of rows and are an equal amount of columns over (Sheet1!B1 refers to 3 columns over from Sheet2!A1, Sheet1!B1 refers to 4 columns over from Sheet2!A1). The spreadsheet is a fairly complex one and it would be much cleaner and less likely to have any mistakes if I was not referencing each cell invividually.
    Last edited by Arcadia; 01-16-2014 at 01:47 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Offset from the location of another cell

    Do you mean that you want to have a formula that means "Refer to a cell offset relative to whatever cell Sheet1!A1 is referring to"?


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The 99 is an arbitrarily large number to account for any size string. It actually can't be that long but I use 99 because it's eye-catching and reminds me that I just picked a big number.

    So using your first example, this formula will refer to Sheet2!B3, which is 2 rows down and one column to the right of Sheet2!A1

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This formula will give you an error if the contents of the cell is anything other than a formula that refers directly to another cell.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-15-2014
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Offset from the location of another cell

    That worked perfectly. Thanks.

+ 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. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  2. Test for Istext where cell offset location is a varaible
    By astrikor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2013, 01:12 PM
  3. [SOLVED] Need to specify a function range that gets offset depending on cell location
    By Spirods in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-13-2013, 04:52 AM
  4. Copy specific range to offset location
    By Mister P in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-21-2009, 07:29 AM
  5. [SOLVED] automatic offset cell location when there is a value in a selected cell.
    By kuansheng in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-22-2006, 09:45 PM

Tags for this Thread

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