Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
iop iop is offline
external usenet poster
 
Posts: 9
Default how to refer to the files with regular names? (with formula)

e.g. there r some files with regular names: d:\ABC\1.xls, 2.xls, 3.xls, ....
N.xls
i want to refer to some cells of these files in a excel file ( d:\temp.xls),
how to use the formula to make it?

thanks!
--
cj
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default how to refer to the files with regular names? (with formula)

You can create names referencing external ranges e.g.

Names.Add Name:="myName", RefersTo:="=D:\ABC\[1.xls]Sheet1'!$A$1"

Then refer to these in formula e.g.

=A1 * myName

--

Regards,
Nigel




"iop" wrote in message
...
e.g. there r some files with regular names: d:\ABC\1.xls, 2.xls, 3.xls,
....
N.xls
i want to refer to some cells of these files in a excel file (
d:\temp.xls),
how to use the formula to make it?

thanks!
--
cj


  #3   Report Post  
Posted to microsoft.public.excel.programming
iop iop is offline
external usenet poster
 
Posts: 9
Default how to refer to the files with regular names? (with formula)

can we make it directly (without using any macro, only formula)?
thanks!
--
cj


"Nigel" wrote:

You can create names referencing external ranges e.g.

Names.Add Name:="myName", RefersTo:="=D:\ABC\[1.xls]Sheet1'!$A$1"

Then refer to these in formula e.g.

=A1 * myName

--

Regards,
Nigel




"iop" wrote in message
...
e.g. there r some files with regular names: d:\ABC\1.xls, 2.xls, 3.xls,
....
N.xls
i want to refer to some cells of these files in a excel file (
d:\temp.xls),
how to use the formula to make it?

thanks!
--
cj


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
How to refer to tab names? Rj Excel Discussion (Misc queries) 1 December 21st 09 08:31 AM
some kind of meta-way to refer to sheet and file names in Excel? GoBobbyGo Excel Discussion (Misc queries) 7 February 22nd 06 03:05 PM
How to refer to programmatically Dynamice Range names Mike Metal Excel Programming 1 February 14th 05 09:31 AM
Can Names refer to Collections? Bob Phillips[_6_] Excel Programming 0 February 25th 04 10:02 AM
excel calculate problem, (try to refer to defined names?) CornElvis Excel Programming 1 November 18th 03 03:55 AM


All times are GMT +1. The time now is 06:41 PM.

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"