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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 10-13-2005, 05:27 AM   #1 (permalink)
Registered User
 
sharkei's Avatar
 
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
sharkei is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 10-13-2005, 09:12 AM   #2 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,606
OS: WinXP Pro SP2

My System

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."
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-13-2005, 02:36 PM   #3 (permalink)
Moderator/ Rangemaster TSF Academy; Analyst, Security Team; Oor Wullie; TSF Surgeon and Resident Comic
 
Glaswegian's Avatar
 
Join Date: Sep 2005
Location: Glasgow
Posts: 28,100
OS: Win XP Pro SP3 / Win 7 Pro

My System

Blog Entries: 10
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
Glaswegian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-17-2005, 07:36 AM   #4 (permalink)
Registered User
 
sharkei's Avatar
 
Join Date: Sep 2005
Posts: 55
OS: Windows XP Home


Thumbs Up

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.
sharkei is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 05:00 PM.



Copyright 2001 - 2010, Tech Support Forum
Auto Support Forum | Brew Plus | Freemason Hall | Outdoor BaseCamp
Home Tips Plus | Herbalist Hut | Father Adviser | Budget Clowns

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84