+ Reply to Thread
Results 1 to 3 of 3

How to reference a source workbook by having the title in the destination workbook?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-06-2014
    Posts
    5

    How to reference a source workbook by having the title in the destination workbook?

    Hi,
    I want see if it's possible to take the name of the source workbook and put it in a cell in my destination workbook and then use that as the reference in formulas. The source document title includes a date that changes yearly, or in some instances changes entirely, and I want to keep the formulas in the destination workbook intact. I don't want to have to go to every instance where I have used the source workbook and change the title. Instead I would like to copy the source workbook title, paste it into the destination in the same cell and have that propogate the needed changes into the destination workbook formulas.

    Any help is greatly appreciated.

    Thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: How to reference a source workbook by having the title in the destination workbook?

    You will need to use the INDIRECT function, which allows you to build up a cell or range reference as a text string and then passes it to Excel as a reference that it can handle. However, it does not work with closed workbooks, so your source workbook will have to be open at the same time as your destination workbook. If that is not a problem, then give some examples of the formulae that you use now and then we can give you the equivalents using INDIRECT.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-06-2014
    Posts
    5

    Re: How to reference a source workbook by having the title in the destination workbook?

    So a shortened version of the formula is:

    =SUMIFS('[Source_Document.xlsx]Sheet1'!$K$6:$K$1048576,'[Source_Document.xlsx]Sheet1'!$B$6:$B$1048576,"=B*",'[Source_Document.xlsx]Sheet1'!$G$6:$G$1048576,">="&B14,'[Source_Document.xlsx]Sheet1'!$G$6:$G$1048576,"<="&C14)

    I need to also access Sheet2 in a different location in the same destination workbook.

    Thanks for the 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. Replies: 0
    Last Post: 10-11-2012, 12:26 PM
  2. Get data from source workbook and paste to destination in change format
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2012, 01:47 AM
  3. Replies: 0
    Last Post: 07-09-2010, 05:08 AM
  4. How do I post values from source workbook to destination workbook
    By Raghavendra Kulkarni in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2005, 09:06 AM
  5. how to copy succeeding rows from source workbook to destination w.
    By chris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-08-2005, 10:06 AM

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