Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Nested String Filename Variable

I have to make comparisons of data monthly with files whose data are in the
same positions within the worksheets, but whose values vary each month.

I created a template with links that will read a cell in a particular file
(i.e. ='[12-06 Ops Stmt.xls] Chicago"!$L$205) and if I manually copy and
paste links I can create the comparisons I need.

Every month the file name changes. I would like to create a cell in which I
enter the new filename and modify the formulas so that the formulas in the
cells pull that filename from that cell and populate my comparison sheet.

I think I explained that right.

Is it doable?

Thanks.

Ed


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Nested String Filename Variable

As long as the file is open, you could enter the filename in, say, cell
A1 and use:

=INDIRECT("'[" & A1 & "] Chicago'!L205")




In article ,
ed9213 wrote:

I have to make comparisons of data monthly with files whose data are in the
same positions within the worksheets, but whose values vary each month.

I created a template with links that will read a cell in a particular file
(i.e. ='[12-06 Ops Stmt.xls] Chicago"!$L$205) and if I manually copy and
paste links I can create the comparisons I need.

Every month the file name changes. I would like to create a cell in which I
enter the new filename and modify the formulas so that the formulas in the
cells pull that filename from that cell and populate my comparison sheet.

I think I explained that right.

Is it doable?

Thanks.

Ed

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Nested String Filename Variable

Thanks for the suggestion. It didn't work for me, though. The reference
file is open, but using that "INDIRECT" script returns an error in which A1
is blue. I surrounded the filename in A1 in quotes, and that didn't resolve
it either.

Ed


"JE McGimpsey" wrote:

As long as the file is open, you could enter the filename in, say, cell
A1 and use:

=INDIRECT("'[" & A1 & "] Chicago'!L205")




In article ,
ed9213 wrote:

I have to make comparisons of data monthly with files whose data are in the
same positions within the worksheets, but whose values vary each month.

I created a template with links that will read a cell in a particular file
(i.e. ='[12-06 Ops Stmt.xls] Chicago"!$L$205) and if I manually copy and
paste links I can create the comparisons I need.

Every month the file name changes. I would like to create a cell in which I
enter the new filename and modify the formulas so that the formulas in the
cells pull that filename from that cell and populate my comparison sheet.

I think I explained that right.

Is it doable?

Thanks.

Ed


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Nested String Filename Variable

Works here - did you include ".xls" in the file name? Does your
worksheet name really start with 4 spaces?

In article ,
ed9213 wrote:

Thanks for the suggestion. It didn't work for me, though. The reference
file is open, but using that "INDIRECT" script returns an error in which A1
is blue. I surrounded the filename in A1 in quotes, and that didn't resolve
it either

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Nested String Filename Variable

Well, I did include the .xls in the filename in A1. I took the 4 spaces from
the format Excel uses when I do this: Go to a cell that i want to reference,
click Copy, then paste a link to it in the comparison spreadsheet. The 4
spaces were part of the link formula.

Thanks.

"JE McGimpsey" wrote:

Works here - did you include ".xls" in the file name? Does your
worksheet name really start with 4 spaces?

In article ,
ed9213 wrote:

Thanks for the suggestion. It didn't work for me, though. The reference
file is open, but using that "INDIRECT" script returns an error in which A1
is blue. I surrounded the filename in A1 in quotes, and that didn't resolve
it either




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Nested String Filename Variable

Your question prompted me to search, and the sheet name does have spaces in
front of it, so the name would appear to slide right. It is a protected
sheet, so I can't remove the spaces. The file name has many words, which is
why I surrounded it with quotes, and tried parentheses, but with no success.
I even renamed the file with a one-word filename, and that didn't help either.

Thanks.

"ed9213" wrote:

Well, I did include the .xls in the filename in A1. I took the 4 spaces from
the format Excel uses when I do this: Go to a cell that i want to reference,
click Copy, then paste a link to it in the comparison spreadsheet. The 4
spaces were part of the link formula.

Thanks.

"JE McGimpsey" wrote:

Works here - did you include ".xls" in the file name? Does your
worksheet name really start with 4 spaces?

In article ,
ed9213 wrote:

Thanks for the suggestion. It didn't work for me, though. The reference
file is open, but using that "INDIRECT" script returns an error in which A1
is blue. I surrounded the filename in A1 in quotes, and that didn't resolve
it either


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Nested String Filename Variable

that would indicate that the spaces are part of the worksheet name. When
I set up two workbooks, one with a sheet named " Chicago". The
filename in A1 should be exactly the filename, with extension, no
quotes, no extra spaces. Like I said - works in my test books.

What error do you get in the cell with the formula?


In article ,
ed9213 wrote:

Well, I did include the .xls in the filename in A1. I took the 4 spaces from
the format Excel uses when I do this: Go to a cell that i want to reference,
click Copy, then paste a link to it in the comparison spreadsheet. The 4
spaces were part of the link formula.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help setting the worksheet header/Footer margins based on string height? Doug Excel Discussion (Misc queries) 0 August 20th 06 02:05 AM
Entering a filename as a variable into cell similar as for footer Doug Excel Discussion (Misc queries) 3 May 17th 06 04:39 AM
Browse File for Mac John Vickers Excel Discussion (Misc queries) 1 February 17th 06 06:23 PM
Auto convert an alphanumeric string (CIS9638S) to numbers only? Gary L Brown Excel Worksheet Functions 1 September 7th 05 01:17 AM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"