+ Reply to Thread
Results 1 to 10 of 10

Formula help for a linked cell to another worksheet

  1. #1
    Registered User
    Join Date
    04-26-2018
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    15

    Formula help for a linked cell to another worksheet

    Hi,

    I am a new forum user and have a decent amount of knowledge of Excel (but I am lost in formulas). I hope I am not asking something for which a simple search would have led to the answer, but I wouldn't know what to search for.

    I have a workbook with several sheets in it and the data on the primary worksheet is to be transposed as a linked cell in the secondary worksheet. The basic formula is this:
    ='Primary work sheet'!$A$1

    Now, I have linked cells for column A, B, C, D, etc. The rows that I want to reference in the secondary work sheet are a selection from the primary worksheet (not all of them, not sequential either).

    Is there a way to have all the formulas in place, then to enter the row number in only one cell and automatically change the same data (row number) in the other cells? Maybe some kind of formula that says:
    ='Primary work sheet'!$A$x where x is a row number that is entered somewhere on the secondary sheet? So that, by simply entering the value for x, the cells with all the formulas would change (='Primary work sheet'!$B$x, ='Primary work sheet'!$C$x, etc.).

    I hope I am making myself clear (but I don't think I am!). Thanks to those who attempt to decipher this!

    FL

  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: Formula help for a linked cell to another worksheet

    If I understand correctly (and I'm not sure I do) this will work for you:

    Use this as the formulas in "the cells with all the formulas"

    =OFFSET('Primary work sheet'!$A$1,'Secondary work sheet'!$A$1-1,0)
    =OFFSET('Primary work sheet'!$B$1,'Secondary work sheet'!$A$1-1,0)
    =OFFSET('Primary work sheet'!$C$1,'Secondary work sheet'!$A$1-1,0)
    etc.

    and in 'Secondary work sheet'!$A$1, put the row number you want.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula help for a linked cell to another worksheet

    Hello and welcome to the forum.

    Try the INDIRECT function. Something along the lines of =INDIRECT("'Primary work sheet'!$A$"&Z1) where the desired row number is in cell Z1.

    That being said, it is difficult for us to provide an optimized solution without seeing a small representative sample of your data along with the desired output.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  4. #4
    Registered User
    Join Date
    04-26-2018
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    15

    Re: Formula help for a linked cell to another worksheet

    Hi Stringjazzer and Falcondude, and thanks for your quick replies!

    I tried the INDIRECT function first because it seemed simpler, and it worked straight away! That was awesome. I can hardly believe you understood my need. Will definitely come back when I am stumped again!

    Much appreciated!
    FL

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula help for a linked cell to another worksheet

    Great, glad we could help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula help for a linked cell to another worksheet

    FYI, here is another choice that uses a non-volatile function:

    =INDEX('Primary work sheet'!A:A,Z1)

    If Z1 = 4, then the formula will return the value in A4 of the 'Primary work sheet' sheet.

  7. #7
    Registered User
    Join Date
    04-26-2018
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    15

    Re: Formula help for a linked cell to another worksheet

    Hi again,

    I have already done all the modifications using the INDIRECT function. I don't know much about volatility (I consulted the link you provided). Will it impact my spreadsheet's functionality? I guess the question is, should I go through the trouble of redoing everything using the INDEX function instead?

    Thanks again,
    FL

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula help for a linked cell to another worksheet

    It depends on a few things including how many cells you are using the volatile function in.

    If you do not notice a performance decrease, then I would leave it alone.

    If it ain't broke, don't fix it.

  9. #9
    Registered User
    Join Date
    04-26-2018
    Location
    Montreal
    MS-Off Ver
    2016
    Posts
    15
    Excellent, thanks again for the help!
    FL

    Quote Originally Posted by 63falcondude View Post
    It depends on a few things including how many cells you are using the volatile function in.

    If you do not notice a performance decrease, then I would leave it alone.

    If it ain't broke, don't fix it.

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula help for a linked cell to another worksheet

    You're welcome. Happy to help.

+ 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. ComboBox on worksheet linked to a cell
    By dinamis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2014, 05:26 PM
  2. Cell in linked worksheet formula defaulting to a fixed reference
    By Pam Johnson in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-27-2013, 06:36 PM
  3. cell info linked to worksheet name?
    By locke1990 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2007, 02:21 PM
  4. Replies: 1
    Last Post: 10-31-2006, 08:34 AM
  5. Worksheet name linked to cell
    By robi in forum Excel General
    Replies: 1
    Last Post: 05-04-2006, 07:50 PM
  6. [SOLVED] Can a cell be linked to display the name of the worksheet tab?
    By Blue Jay One in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2006, 11:15 PM
  7. [SOLVED] worksheet linked to a cell
    By Martin BN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-20-2005, 06:35 AM
  8. [SOLVED] Replace worksheet name in formula linked to a different workbook
    By Jen and Debra in forum Excel General
    Replies: 1
    Last Post: 02-10-2005, 07:06 PM

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