Solved

variable within reference string to other file

Posted on 2014-12-10
2
70 Views
Last Modified: 2014-12-12
I am using a simple link from 1 file to another:  =[source0115.xlsx]Sheet1!$A$1

The file name is source0115.xlsx

I want to make that a reference so I can keep changing a reference cell in the destination sheet to pick up data from the correct month without having to find/replace.

I tried =[=C1]Sheet1!$A$1 where C1 was source0215 but it didn't work.

THANKS!
0
Comment
Question by:dnewman33
2 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
Hi,

pls try

=INDIRECT("'["&C1&"]Sheet1'!$A$1")

if the file is not currently open C1 should have the complete path of the file

your formula should be with path in C2

=INDIRECT("'"&C2&"["&C1&"]Sheet1'!$A$1")

Regards
0
 

Author Comment

by:dnewman33
Comment Utility
Perfect! Thanks!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Viewers will learn how to find and create templates in Excel 2013.
Viewers will learn a basic relationship technique in Power Pivot for Excel 2013.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now