+ Reply to Thread
Results 1 to 6 of 6

Variable Cell References

Hybrid View

  1. #1
    Registered User
    Join Date
    02-11-2006
    Posts
    11

    Variable Cell References

    Hey all I'd like to set a sheet up so that I can something like the following:

    A(A2)

    And then when I type a digit in to A2 it would change to reference that cell, so if I type "5" in to A2 It would reference A5, if I typed 20 in to A2 it'd reference A20 and so on.

    Thanks for your time.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    =indirect("a"&a2)

  3. #3
    Registered User
    Join Date
    02-11-2006
    Posts
    11
    Thanks, also how can I use that in conjunction with calling from another sheet?

    I've tried ='Sheet1'!INDIRECT("a"&a2)

    But that doesn't work
    Last edited by HisHighness; 02-03-2008 at 07:45 AM.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by HisHighness
    Thanks, also how can I use that in conjunction with calling from another sheet?

    I've tried ='Sheet1'!INDIRECT("a"&a2)

    But that doesn't work
    =INDIRECT("Sheet1!A"&A1)

  5. #5
    Registered User
    Join Date
    10-31-2008
    Location
    Vermont
    Posts
    1
    Trying to do the same with a reference to another sheet in another workbook...trying:

    =INDIRECT("[GGOB Data Final.xlsx]P&L - TARGETED!"&A20&"125")

    where cell A20 in the current sheet contains the column needed in the reference sheet and 125 is the row in the reference sheet.

    What am I doing wrong?

    Thanks for your help

  6. #6
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Quote Originally Posted by papagreybeard View Post
    Trying to do the same with a reference to another sheet in another workbook...trying:

    =INDIRECT("[GGOB Data Final.xlsx]P&L - TARGETED!"&A20&"125")

    where cell A20 in the current sheet contains the column needed in the reference sheet and 125 is the row in the reference sheet.

    What am I doing wrong?

    Thanks for your help
    G'day Papa,

    and welcome to the forum.

    From your description you need the Index formula with a Match nested.

    Info on the Index formula http://www.contextures.com/xlFunctions03.html

    If you have further problems, search the forum for an answer and if that doesn't help, please start a new thread and the forum will be more than happy to help you further.

    Cheers
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

+ 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