+ Reply to Thread
Results 1 to 9 of 9

Excel 2003 Want Offset Reference to be Contents of Cell

  1. #1
    Registered User
    Join Date
    10-18-2007
    Posts
    28

    Excel 2003 Want Offset Reference to be Contents of Cell

    I have done a Scenario and they list the cell address (example R2C35) in the Report - the cell has the text "R2C35" in it.

    I want to get the contents of a cell 2 columns to the left of Cell R2C35.

    So what would I use for the Reference Cell in the Offset formula?

  2. #2
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    Does the cell address change or is R2C35 always the value in the cell? Do you always want to return the value 2 columns to the left of the cell address?

  3. #3
    Registered User
    Join Date
    10-18-2007
    Posts
    28

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    The value of the cell could change AND the offset could change.

    What I need is Offset (R2C35,...) its just that R2C35 is text in another cell.

  4. #4
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    How do you know what the offset will change by?

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    let us say that cell H3 has the result of your Scenario, and it is populated with the value R2C35.

    put this formula in cell H4:

    Please Login or Register  to view this content.
    it will return the value that exists in the cell R2C33 - at the intersection of 2nd Row and 33rd Column. change the highlighted "2" to any other number to get a different "offset".
    Last edited by icestationzbra; 03-21-2014 at 10:50 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    Here's another one.

    A1 = R2C35

    =INDIRECT(LEFT(A1,SEARCH("c",A1))&MID(A1,SEARCH("c",A1)+1,5)-2,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    10-18-2007
    Posts
    28

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    I don't know how I missed it, but where

    R2C1 = R2C35
    OFFSET ( INDIRECT(R2C1), 0, -2)

    brings back the contents of R2C33

    Sorry but I don't know how I missed this since this was the first thing I tried. I'll have to check the spreadsheet at the office on Monday and see if I can determine how I got things confused.

    Sorry again,
    Tom
    Last edited by mot; 03-22-2014 at 10:24 PM.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    Try it like this...

    A1 = R2C35

    =OFFSET(INDIRECT(A1,0),0,-2)

  9. #9
    Registered User
    Join Date
    10-18-2007
    Posts
    28

    Re: Excel 2003 Want Offset Reference to be Contents of Cell

    Tony,

    Interesting your version of the solution.

    I first did it using A1 references so the TRUE default 2nd parameter of INDIRECT was not needed.

    Then I changed the cell references to RC style and the formula still worked without the FALSE 2nd parameter.

+ 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. Replies: 4
    Last Post: 03-15-2014, 11:01 PM
  2. [SOLVED] Hyde a row basing on cell contents (excel 2003)
    By lucaglr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-30-2012, 10:07 AM
  3. [SOLVED] Clear contents of last used cell in a range and those previous to it (excel 2003)
    By chris_norton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2012, 02:06 PM
  4. How do i use a cell contents to reference to a name in excel?
    By BJRParker in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-06-2006, 11:35 AM
  5. Replies: 5
    Last Post: 04-06-2006, 11:30 AM

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