![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
I'm using a single worksheet to analyze data in various .XLS files. I would like to be able to enter the name of the .xls file I want to analyze in one cell of the worksheet and then reference that cell in the various formulas. As an example I would like a formula to count the number of items in an .xls file: =COUNT([NameOfFile.xls]NameOfWorksheet$A:$A). Instead of the specific name of the file I would like NameOfFile to be a variable.
Thanks |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
If the workbooks you are going to analyze will be open, you could use the indirect function for this.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|