+ Reply to Thread
Results 1 to 4 of 4

Link to other cell in another workbook with changing variable

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    Helsinki, Finland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Link to other cell in another workbook with changing variable

    Hi,

    In sheet2 I have a link to a value in a cell of sheet1, for example I have in C3 in sheet2 that =sheet1!A7, which gives me correctly the value of A7 from sheet1.

    Now I want to define in one cell of sheet2 that from which row the value will be taken. For examle if I put 3 to cell C1 in sheet2, the value in C3 of sheet2 would change to =sheet1!A3.
    Last edited by tlepola; 02-26-2011 at 01:30 AM. Reason: Solved

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

    Re: Linking to other cell in another workbook with changing variable

    Try this:

    =INDIRECT("Sheet1!A"&C1)

    C1 must contain a number or this will generate an error.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,872

    Re: Linking to other cell in another workbook with changing variable

    By the way, if the cell in Sheet1 is blank, you will get a 0 here. Let me know if that will be a problem.

  4. #4
    Registered User
    Join Date
    02-25-2011
    Location
    Helsinki, Finland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Linking to other cell in another workbook with changing variable

    This solved the problem, Thanks. And the "returning zero" is not a problem.

+ 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