+ Reply to Thread
Results 1 to 7 of 7

Referencing a Cell to Use a Specific Workbook

  1. #1
    Registered User
    Join Date
    07-02-2014
    Location
    Miami, Florida
    MS-Off Ver
    Microsoft Excel for Mac 2011 Version 14.4.1
    Posts
    8

    Referencing a Cell to Use a Specific Workbook

    I want to reference a workbook using a cell reference.

    Example:

    Cell B2 in Workbook2 has the text:
    Workbook1

    Cell B3 in Workbook2 should look like:
    ='[Workbook1.xls]Sheet1'!$A$1'
    to link cell B3 in Workbook2 with Cell A1 in Workbook1

    I need to make it so that the text from Cell B2 in Workbook2 is plugged into Cell B3 in Workbook2.
    So I thought it would look something like this:
    ='[(=B2).xls]Sheet1'!$A$1'

    Thanks for the Help!

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Referencing a Cell to Use a Specific Workbook

    Hi gittleman..
    For this you have to first copy the path of workbook one...
    only then you will be able to move further to refer the cell..



    Don't forget to click *

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Referencing a Cell to Use a Specific Workbook

    After that you can use the address function to refer to that cell ..

    but you have to change one of its last argument ies sheet name with the path of the workbook 1


    Don't forget to click *

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Referencing a Cell to Use a Specific Workbook

    Hi and welcome to the forum

    To use text in a cell as a reference in a formula, you would normally use the INDIRECT() function. However, this only works on open workbooks - you could try using the Morefunc add-in if the workbook will be closed

    If the other workbook will be open, try something like this...

    B2=Workbook1

    B3=INDIRECT("["&B2&".xlsx]Sheet1!$A$3")

    Adjust references as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    07-02-2014
    Location
    Miami, Florida
    MS-Off Ver
    Microsoft Excel for Mac 2011 Version 14.4.1
    Posts
    8

    Re: Referencing a Cell to Use a Specific Workbook

    Hi FDibbins!

    Sorry I haven't responded I haven't had the time but I am looking to use the formula on closed workbooks. Can you please elaborate on the "Morefunc add-in" function please.

    Thanks!

  6. #6
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Referencing a Cell to Use a Specific Workbook


  7. #7
    Registered User
    Join Date
    07-02-2014
    Location
    Miami, Florida
    MS-Off Ver
    Microsoft Excel for Mac 2011 Version 14.4.1
    Posts
    8

    Re: Referencing a Cell to Use a Specific Workbook

    Sorry but this still comes up with a reference error.

+ 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. [SOLVED] COUNTIF <>= Referencing a specific cell
    By nighthalcyon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2013, 12:52 PM
  2. Replies: 6
    Last Post: 10-30-2012, 08:33 PM
  3. [SOLVED] VLOOKUP referencing a specific cell
    By nicolaforni in forum Excel General
    Replies: 3
    Last Post: 04-12-2012, 12:01 PM
  4. Referencing a specific character in a cell
    By jmoffett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2006, 09:43 PM
  5. VBA syntax when referencing a specific cell
    By d888nc in forum Excel General
    Replies: 2
    Last Post: 10-24-2006, 04:24 PM

Tags for this Thread

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