+ Reply to Thread
Results 1 to 8 of 8

How to link to another workbook cell but specific sheet is variable

  1. #1
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    How to link to another workbook cell but specific sheet is variable

    I want to display data from one cell of one workbook to another but also be able to change the specific sheet freely to work with different data depending on the sheet sort of how you can have different data on a mail merge page depending on which sheet you select in your data source. Any way to do this? Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: How to link to another workbook cell but specific sheet is variable

    One way to do this is to use INDIRECT function pointing to a cell that contains the names of the worksheets. I have set up a small example in the attachment.

    This is the formula =INDIRECT($E$2&"!"&C$1&$A2+1) where cell $E$2 contains a drop down list of worksheet names that can be selected to change the data on the "Yearly" worksheet.
    Attached Files Attached Files
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to link to another workbook cell but specific sheet is variable

    oooh that's brilliant! to me at least. thanks. but I was looking under the "data" tab. will your method work across different workbooks/files? I think so right? just include the correct sytax for the file right? [] these or something? will look into it..
    Excel 1.0.1 (16.0.14326.20140) (Android)
    Excel 2010 14.04.4760.1000

  4. #4
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to link to another workbook cell but specific sheet is variable

    I don't even know how you made that button. how did you make that cool button?

  5. #5
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to link to another workbook cell but specific sheet is variable

    still looking for info on how to make these buttons that link to different sheets. I've gotten lost in the articles on these buttons and all of them instruct you make the list by entering values into cells somewhere. so how would you redirect that reference to sheets? this is way over my head. anyone?

  6. #6
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to link to another workbook cell but specific sheet is variable

    good stuff! I backwards engineered all that brilliance there and it's working great. Thanks

  7. #7
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Re: How to link to another workbook cell but specific sheet is variable

    Well done! Sorry I didn't get back to you earlier but you've seen how exciting it is to work out a problem yourself. Remember to flag this thread as SOLVED and have a great day.

  8. #8
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to link to another workbook cell but specific sheet is variable

    hey tugh, you know how you have an extra row and a column dedicated to indicating the rows and columns for both the main sheet and reference sheets? where is it necessary? I figured that the INDIRECT formula tells it to read it first the sheet, then the corresponding rows/columns, but when I erased the labels in the reference sheets in my file and yours too as an experiment, it didn't affect the results. So then logically I started removing the labels in the source sheet and got problems.

    So then that tells me that it's the main sheet that needs the labels but get this: I have one sheet I started using your INDIRECT formula with to reference the other sheets in the same manner as I was already doing, but this one I never put an extra row to label each column, YET up til today(don't know what happened) it was working, INDIRECT'ing to other sheets but WITHOUT that top row #1 labeled a,b,c,d etc... So how was that working before?

    edit: never mind! I was wrong. this latest strangely behaving file was doing exactly as it was supposed to and it DID in fact have that extra row in there that I had hid real well. So unless you disagree it appears that Excel reads the INDIRECT instructions as if from the sheet that it's in.
    Last edited by juntjoo; 10-18-2016 at 03:55 PM.

+ 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. Link to cell in closed book with a variable sheet.
    By Vadym in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-27-2016, 08:49 AM
  2. How Can I: Link from OneNote to a Specific Sheet/Cell in Excel?
    By Sandcastle in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-29-2015, 05:14 PM
  3. Replies: 0
    Last Post: 10-11-2012, 10:48 PM
  4. Replies: 3
    Last Post: 02-26-2011, 01:19 AM
  5. Link cell from variable named sheet to cell on another sheet with variable rows
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2010, 01:38 PM
  6. Link cell to Last Sheet in another Workbook
    By BudParker in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2009, 06:39 PM
  7. [SOLVED] link cell from one sheet to another within the same workbook
    By Lp in forum Excel General
    Replies: 2
    Last Post: 01-07-2006, 12:35 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