![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 440,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer
Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Sep 2005
Posts: 55
OS: Windows XP Home
|
Excel - Using a variable to link to an external workbook
Hi to all Excel Gurus
I have a summary workbook which links data from a number of external workbooks. So an example of a formula in a cell is ='C:\My Documents\Department 1\April 05\[Data.xls]Sheet 1'!A1, where there could be any number of Departments. I currently roll forward to the next month by editing the links. What I would like to be able to do, if possible, is to create dynamic links that are concatenated from variables contained in the summary workbook. The formula would look like this: =concatenate("'C:\My Documents\Department 1\",B1,"\[Data.xls]Sheet 1'!A1") where B1 contains the string "April 05". (Hope I've got the syntax right). My attempts so far don't produce a link, Excel just evaluates the concatenation, and displays it as a string. Maybe I am trying to exceeding basic Excel functionality and will have to use Visual Basic to achieve this. Grateful for your thoughts. Kind regards Keith |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here
|
|
|
#2 (permalink) |
|
Superhuman Computer
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,606
OS: WinXP Pro SP2
|
Try using the formula INDIRECT() with the concatenated workbook/cell reference inside the brackets. This should work.
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again." |
|
|
|
|
|
#3 (permalink) |
|
Moderator/ Rangemaster TSF Academy; Analyst, Security Team; Oor Wullie; TSF Surgeon and Resident Comic
|
Hi Keith
In addition to Reekorl's suggestion, and if you want even more flexibility, try dowloading the Morefunc add-in. http://xcell05.free.fr/english/index...func_Functions It includes the INDIRECT.EXT function which allows you to return the value of a cell in a closed workbook(plus lots of other useful functions). Regards
__________________
Iain - Defender of the Haggis and all things Scottish. I don't help by PM - post in the Forums. ![]() ![]() PC Safety & Security::PC running a bit slow?::Donate::Photographers Corner |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Sep 2005
Posts: 55
OS: Windows XP Home
|
Glaswegian and ReeKorl
Thanks for the link to the Add-in. I have seen a reference to it before, but didn't appreciate what extra functionality it provided. I needed to have the links work on closed files - there are probably too many to have open at the same time. Kind regards Keith Last edited by sharkei; 10-17-2005 at 07:38 AM. |
|
|
|
![]() |
| Thread Tools | |
|
|