+ Reply to Thread
Results 1 to 4 of 4

formula :Referencing a cell based on the value in another cell

Hybrid View

  1. #1
    Registered User
    Join Date
    02-01-2008
    Posts
    3

    formula :Referencing a cell based on the value in another cell

    I have a simple formula (=Sheet1!G3) to pull the contents of a cell from other worksheet into my current worksheet.

    I want to copy this down 100 lines and the data is always found in column G but the row value changes (i.e. next row might be =Sheet1!G26)

    Rather than editing each formula (as I have this down multiple columns) I wanted to add the row reference into the 1st column of my current worksheet and created a formula a little like this

    =Sheet1!G(A1) where A1 = the row number from the worksheet row I am looking up (i.e. 3)

    Hope this make sense and someone know an answer!

    Thanks - Adrian

  2. #2
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    The formulas you are looking for are INDIRECT() possibly in conjuction with ADDRESS()
    =INDIRECT(ADDRESS(A1,7,,,"Sheet1"))

    or possibly you could use OFFSET()
    =OFFSET(Sheet1!$G$1,A1,0)

    Mark.

  3. #3
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    A third option might be to use INDEX()
    =INDEX(Sheet1!G:G,A1)

    Which you use is largely a matter of personal taste...

  4. #4
    Registered User
    Join Date
    02-01-2008
    Posts
    3
    Thanks Mark

    Got my head around =INDIRECT and although it probably too longer to sort this time (research time!) it will save me days in the future!

+ 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