Linking to Another Excel File (File Name Changes)

Hi,

I have 2 separate Excel file worksheets. Basically, one file is
updated each month and will have a different name (example: File052007
for May, File062007 for June, File072007 for July, etc.). Currently,
I'm trying to link cells in my other file to the updated file, but I
don't know how to set the link so that it can change each month. I was
trying the concatenate or (A1&A2&A3) options to try to link cells
together, but haven't had much luck.

Here is what the formula should look like:

='C:\FOLDER\[File052007.xls]Sheet1'!$A$1

I made 2 cells in this worksheet so that one displays the current
month (05) and the current year (2007). So I was trying to somehow
concatenate the 2 cells into the formula so it will change each month.
Kind of like this:

='C:\FOLDER\[File(Here is where I would put the 2 cells).xls]Sheet1'!$A
$1

But it doesn't seem to be working. Also, I was told the INDIRECT
option can work in this case, but I don't know how to use it.  If
anyone could help, I would greatly appreciate it.

Thanks!

0
PeterNEA (1)
5/28/2007 6:32:31 PM
excel 39879 articles. 2 followers. Follow

2 Replies
355 Views

Similar Articles

[PageSpeed] 32

The function you'd want to use that's built into excel is =indirect().  But that
function returns an error if the sending workbook is closed.

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.

PeterNEA@gmail.com wrote:
> 
> Hi,
> 
> I have 2 separate Excel file worksheets. Basically, one file is
> updated each month and will have a different name (example: File052007
> for May, File062007 for June, File072007 for July, etc.). Currently,
> I'm trying to link cells in my other file to the updated file, but I
> don't know how to set the link so that it can change each month. I was
> trying the concatenate or (A1&A2&A3) options to try to link cells
> together, but haven't had much luck.
> 
> Here is what the formula should look like:
> 
> ='C:\FOLDER\[File052007.xls]Sheet1'!$A$1
> 
> I made 2 cells in this worksheet so that one displays the current
> month (05) and the current year (2007). So I was trying to somehow
> concatenate the 2 cells into the formula so it will change each month.
> Kind of like this:
> 
> ='C:\FOLDER\[File(Here is where I would put the 2 cells).xls]Sheet1'!$A
> $1
> 
> But it doesn't seem to be working. Also, I was told the INDIRECT
> option can work in this case, but I don't know how to use it.  If
> anyone could help, I would greatly appreciate it.
> 
> Thanks!

-- 

Dave Peterson
0
petersod (12004)
5/28/2007 8:53:06 PM
To do the concatenation just put the whole thing inside an Indirect and use " 
marks and & as needed (note carefully the " and ' in the right places) eg:
=INDIRECT("'C:\FOLDER\[File" & CellContainingMonth & CellContainingYear & 
".xls]Sheet1'!$A$1)

As mentioned, this only works when the source file is open
-- 
Adam Vero
MCP, MOS Master, MLSS, CWNA
http://veroblog.wordpress.com
http://www.meteorit.co.uk


"PeterNEA@gmail.com" wrote:

> Hi,
> 
> I have 2 separate Excel file worksheets. Basically, one file is
> updated each month and will have a different name (example: File052007
> for May, File062007 for June, File072007 for July, etc.). Currently,
> I'm trying to link cells in my other file to the updated file, but I
> don't know how to set the link so that it can change each month. I was
> trying the concatenate or (A1&A2&A3) options to try to link cells
> together, but haven't had much luck.
> 
> Here is what the formula should look like:
> 
> ='C:\FOLDER\[File052007.xls]Sheet1'!$A$1
> 
> I made 2 cells in this worksheet so that one displays the current
> month (05) and the current year (2007). So I was trying to somehow
> concatenate the 2 cells into the formula so it will change each month.
> Kind of like this:
> 
> ='C:\FOLDER\[File(Here is where I would put the 2 cells).xls]Sheet1'!$A
> $1
> 
> But it doesn't seem to be working. Also, I was told the INDIRECT
> option can work in this case, but I don't know how to use it.  If
> anyone could help, I would greatly appreciate it.
> 
> Thanks!
> 
> 
0
AdamV (25)
5/29/2007 9:35:00 AM
Reply:

Similar Artilces:

Change link between form and subform
I have a form with a subform in it. I would like to change the way they are linked so instead of linking from Old ID, they link to New ID I don't know anything about code, is there a way to just change the cell it relies on? Thanks C Confused87 - Bring up the properties of the subform, and change the values in 'Link Child Fields' and 'Link Master Fields' on the Data tab of the properties dialog box. Make sure you have the subform selected, not the form within the subform. -- Daryl S "Confused87" wrote: > I have a form with...

Excel 2000 #4
I have a filled series of numbers that are relative. How do I change them to absolute? Do you that they are produced via formulae? -- HTH Bob Phillips (remove xxx from email address if mailing direct) "billytre" <billytre@discussions.microsoft.com> wrote in message news:0C22BA5C-5B4D-44D0-8B56-8EDEBF1CE862@microsoft.com... > I have a filled series of numbers that are relative. How do I change them to > absolute? No Bob, Just a straight fill by dragging. "Bob Phillips" wrote: > Do you that they are produced via formulae? > > -- > HTH &...

Cardholder name capture
It seems that Citbank want us to be able to provide cardholder names when they do a chargeback investigation. Wouldn't it be a good idea if RMS captured all the information Citibank would want and there was a report to retrieve it? Larry ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree&quo...

Excel hart has OLE onject errors in Access 2007
I am trying to build a chart on a form in Access 2007. I have already created it in Excel and want it to look the same but it seems that the formatting options are greatly reduced, fewer chart options, and formatting variations in Access. I tried to copy and paste the chart from Excel 2007 onto my Access form, and gave it the query as the data source but got messages "The operation on the OLE object failed. The OLE server may not be registered. To register the OLE server, reinstall it." If I remove the name of the query I get an identical chart to the one in Excel, ...

Bulk contact email changes
Say I have 100 contacts from the same company. The company changes names and their email address changes too. Is there a way to do a find/replace in contacts or similar so that I can change the @companyname.com in all the contacts automatically? Thanks in advance, Dean Dean Dummitt wrote: > Say I have 100 contacts from the same company. The company changes > names and their email address changes too. Is there a way to do a > find/replace in contacts or similar so that I can change the > @companyname.com in all the contacts automatically? > > Thanks in advance, >...

Can't have a null value if another field has text.
I have tried a few different things to try and get this to work, but I can't seem to figure it out. Basically, I have a form with some text boxes linked to fields on a table, and I want one of two things to happen (the first one would be preferred, but if that's not possible, the second would be just as good): 1) If Field 1 is updated to a Null value and Field 2 has text in it, move the text from Field 2 to Field 1 and change Field 2 to a Null value. 2) If Field 1 is updated to a Null value and Field 2 has text in it, a message box pops up that essentially says "You can't do ...

change default date format
Is there a way to change the default date format in Excel from the "short date" to a "long date" format permanently. Rightclick on the cell you want to change Format Cells - under the Number tab - Catagory - Date Then just choose the date style you want -- Message posted from http://www.ExcelForum.com ...

Outlook 2003 name resolution
I have had a few people ask why one day all of a sudden, when they type in the first few characters, the auto name resolution just stopped responding. They type the first few letters, and usually the drop down appears with option, but now it doesnt. Any ideas? We are using OL2003 w. SP1 on WinXP boxes.... Thanks in advance.... Chris Chris <chrishoche@odysseylogistics.com> wrote: > I have had a few people ask why one day all of a sudden, when they > type in the first few characters, the auto name resolution just > stopped responding. > > They type the first few l...

Mail merge using Excel data
Using P2003 and mail merge In Pub, whenever my "zipcode" field (that I am getting from an Excel file) has zip +4 digits, "0" shows up in the Pub merge results. In the Excel file, I have tried having the column attributes set as Custom, Text, and others to see if that was causing the problem, but still the same results. How can I get the zip + 4 to display correctly in the Pub merge? Thanks much for your help. Try inserting an apostrophe before the figures in Excel. This tells Excel that the cell contains text. Does this work for you? -- Rae Drysdale "ladyt...

linking #4
I am trying to link and .slk file to a .xls file all the links appear to be updating but i keep getting a message that excel cannot update 1 or all of the links. Is this common when linking with an .slk because i have several linked wrk books and have never had this problem. thanks Dean ...

copying a sorted worksheet to another woksheet.
I am trying to to do data entry for an accounting journal, and I want t have the seperate sheets copy their respective information as the dat is entered. For example, if I enter a Cash transaction on the entr page, I want the cash worksheet page to copy that information as well. I can do it with an if statment already, but that leaves blank spaces i the cash sheet if you have blanks in the entry page -- e_shoopma ----------------------------------------------------------------------- e_shoopman's Profile: http://www.officehelp.in/member.php?userid=457 View this thread: http://www.office...

Opening xls files in word
When I open an excel file it opens in word. If I open Excel and then open the file it opens properly. How do I change the default to open all excel files in excel? Rich Rich, Open up Windows Explorer, click the 'Tools' toolbar and then 'Folder Options...'. Click the 'File Types' tab, and scroll down to find the XLS file extension. Highlight "XLS" - I think it will say that it's set to open with Microsoft Word. If so, click the 'Change' button and set it to open with Microsoft Ex...

how do i copy a chart to another workbook
I just upgraded to Office 2007. In 2003 I was able to select move or copy on a chart and select copy and select another workbook, and copy the chart to that workbook. It doesn't work in 2007. What do I do? ...

Excel and gridline
When I print out my excel sheet, some of my gridline are missing. How do i restore them? By default no gridlines are printed. Use File|Page Setup; open the Sheet tab and check the box got gridlines best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "libtech3" <libtech3@discussions.microsoft.com> wrote in message news:FF3DD74D-6C00-4965-AB1F-31262DC82CB4@microsoft.com... > When I print out my excel sheet, some of my gridline are missing. How do > i > restore them? ...

Can I insert Auto Text of Last Updated in Excel 2003?
Can i do the above on a sheet or in a Header/Footer? Using a macro yes http://tinyurl.com/4d4of -- Regards, Peo Sjoblom (No private emails please, for everyone's benefit keep the discussion in the newsgroup/forum) "jess_steven" <jess_steven@discussions.microsoft.com> wrote in message news:BC065FC2-1B52-40D0-BB3E-04DDE7872268@microsoft.com... > Can i do the above on a sheet or in a Header/Footer? ...

Linked Forms
Hello, I am doing a project that requires two forms.. The first form contains the data for a business the second form contains data for the business owner... How do I link the two forms together...? Many thanks. Bob Send a common key piece of data from the first form (say the company name) to the second form page and include it in the second form as a hidden form field (then if using a database to store the results link with a relationship the 2 results tables by the common field) For form passing information see http://irt.org/articles/js063/index.htm -- ____...

Links not linking
Hello I have written a fairly big spreadsheet linking through the pages with SUM, SUMIF and SUMPRODUCT formula's What I am now finding is that when I update one page it doesn't update the rest, even if I am only typing in a figure to the SUM function. I have check and the calculations function is on automatic. is there a fix or something that I could run to make sure that all the formulas are working correctly. thanks Just a guess (since you already checked tools|options|calculation tab). How about selecting all the cells (ctrl-a (twice in xl2003)) and then edit|replace what: ...

Right-Click in Excel 2002
My right mouse button is set to "select" a cell. How can I change it to bring up the menu that allows me to "delete" "insert" rows/columns? I was accustomed to this feature in my previous version of Excel. Just in Excel, or in all applications? Look at Start, Settings, Control Panel, double-click Mouse, and change settings there as appropriate (like possibly you have button configuration set to "left-handed." Change to "right-handed.") MRO "gambersh" <hivre@excite.com> wrote in message news:04d301c381fa$c4b72590$a301280...

[?] change Server Exchange 5.5
Hallo, I have an organization unit with 2 exchange servers 5.5, both with public IP in NAT (isa server). One of these servers is broken and I have to change it with a new server. So, I have installed win2000 server, exchange 5.5 (in the same O.U.) with sp4. Some questions: a) In Routing I have 200-300 domains; is there a way to copy and paste all of them in the new connector, or I had to manually write them? b) Is there a way to use pop3 without installing the Internel Mail Service? I have create a mailbox in the new server (without the Internet Mail Service), I have tested it: all is ok for ...

Is the file lph.dll a legit file by Ms for Office 2007?
I bought several MS Office Prof 2007 via ebay from different vendors - they came boxed with all the expected labels, security flags, holograms and imprints. When trying to install one, my Hips popped up alerting me to a file. Uploading this file lph.dll to virustotal shows that 7 out 41 AV consider the file a trojan/malware. I contacted MS support re the first file I received and was told that the license number was legit but did not get any answer re the lph.dll issue. Does anyone know what this file does, why some AV consider it malware (could be a FP) and in particular i...

How do u change date format to dd/mm/yyyy
Hi, does anybody know how to show all dates as dd/mm/yyyy instead of mm/dd/yyyy thks done it, thks anyway >-----Original Message----- >Hi, does anybody know how to show all dates as dd/mm/yyyy >instead of mm/dd/yyyy >thks >. > ...

Does anybody cheap soultion for Account Modifier/Change of Strcutu
Dear All, I am looking for the script or way where I can change the whole strcuture of my chart of accounts. If anybody has any solution which won't cost me too much money I really appreciate for the help. contact me at alwani89 @ hotmail.com ...

Another Cannot Send Mail Post
This inability to send email is going on way too long and is effecting my business. I use Verizon at home with my wireless laptop. Have been successfully sending & receiving email for years. Then all of the sudden a couple weeks ago I began getting the following error message (which others have posted as well): The connection to the server has failed. Subject 'SENDING FROM SHOP EMAIL VIA LAPTOP', Account: 'mail.icecreamshop.com', Server: 'mail.icecreamshop.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E ...

Linked Table Manager in ACCESS
Hi, I am trying to change a field in an ACCESS table and get an error message that says the table is a linked table and fields can't be changed. After googling for some answers, I think I should be able to find out the link using "Linked Table Manager" in ACCESS. However, the "Linked Table Manager" button is grayed out. Any ideas/suggestions are welcome. Thanks. Richard Open the table in Design View. Reduce the window so that you can see the window's top bar. Right click in the top bar of the window (usually blue in color) and select ...

How do I import OE .dbx files into outlook?
Old machine crashed but had fortunately backed up data, including important OE .dbx files. How do I import these .dbx files into outlook (no longer have OE) so I can access the content? Simon wrote: > Old machine crashed but had fortunately backed up data, including important > OE .dbx files. > > How do I import these .dbx files into outlook (no longer have OE) so I can > access the content? Why do you no longer have OE on the old machine that crashed that we are to assume where you will reinstall the same version of Windows that before had OE? See http...