• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Connecting 2 workbooks|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Connecting 2 workbooks|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Connecting 2 workbooks
sp_PrintTopic sp_TopicIcon
Connecting 2 workbooks
Avatar
julie vandermeulen
Member
Members
Level 0
Forum Posts: 15
Member Since:
November 8, 2018
sp_UserOfflineSmall Offline
1
November 8, 2018 - 4:20 am
sp_Permalink sp_Print

I have a workbook that has a macro and each week generates a new sheet for us to work in.  I would like to put a formula in O119 of the attached workbook, to automatically look up a number in a different workbook.  I can't attach the other workbook because there is too much personal info.

In the other workbook, named TRIP-Rebates20181030, (the name changes every 6 months. ex TRIP-Rebates20180329, TRIP-Rebates20171030, etc) there are several sheets but on the Family Balance Sheet in cell D3 there is a number that I want to grab every time we update the spreadsheet.

Is there a way to do this since the name changes I'm having a hard time figuring out a formula to grab it.

Avatar
Paul Wakefield

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
July 26, 2013
sp_UserOfflineSmall Offline
2
November 8, 2018 - 7:58 pm
sp_Permalink sp_Print

Would it be possible to manually enter the name of the current other file when the new sheet is created?

If so and let's say the file name is put in Cell A3, the following formula in O119 should work:

=INDIRECT("'["&A3&".xlsm]Family Balance Sheet'!D3")

I have not looked at the macro but, assuming it duplicates the previous week as a starting point, then you would only need to change the input name once every 6 months.

Avatar
julie vandermeulen
Member
Members
Level 0
Forum Posts: 15
Member Since:
November 8, 2018
sp_UserOfflineSmall Offline
3
November 9, 2018 - 7:06 am
sp_Permalink sp_Print

Is there a way to do it without changing the name? I'm afraid that it will get overlooked and forgotten if we can't figure out a way to make it work.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
November 9, 2018 - 11:20 am
sp_Permalink sp_Print

Hi Julie,

If you change the name of the workbook you want to get data from, then you need to change that same name in the formula you want to create in O119.  Or am I missing something?

As Paul illustrates, you can create a reference to the external file like so

='d:\temp\[book1.xlsx]Sheet1'!A1

More info here

https://support.office.com/en-us/article/create-an-external-reference-link-to-a-cell-range-in-another-workbook-c98d1803-dd75-4668-ac6a-d7cca2a9b95f

Regards

Phil

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
5
November 9, 2018 - 11:27 am
sp_Permalink sp_Print sp_EditHistory

If I am not mistaken, INDIRECT does not work with a closed workbook.

The source workbook must be open for it to calculate and the INDIRECT formula must include the full path where the source workbook is located.

So, if you need to open the source workbook, you might just as well copy the value straight from the source.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6210
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31888
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.