Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel formla to take variable

Status
Not open for further replies.

eHanSolo

Technical User
May 24, 2004
260
GB
hi all,

was wondering if it was possible for a worksheet formula to take in a variable specified by a cell.

for example:

range(A1).value would contain something like: 'MyFile.xls'

then i'll have a formula like:

=sum('networkpath here' & range(A1))

possible??

e
 
use the INDIRECT funtion - caveat - it will not work on a closed workbook...

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
If you do want to use a function for a closed workbook, google Harlan Grove's Pull function, or lookup the INDIRECT.EXT function on Laurent Longre's morefunc.xll addin.

-----------
Regards,
Zack Barresse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top