ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to refer to the files with regular names? (with formula) (https://www.excelbanter.com/excel-programming/404069-how-refer-files-regular-names-formula.html)

iop

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

Nigel[_2_]

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



iop

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




All times are GMT +1. The time now is 04:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com