LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 140
Default indirect function referenceing changing file name

I need to get the value of a cell in a date stamped file. The file name will
change over time as the date stamp changes as below

cell A1 has file name without the date say MyFile
cell A2 has date in it say 05-Jan-07
so the actual file name would be A1&A2&.xls
cell A3 has sheet name in it say sheet1
cell A4 has cell reference in that file that i need say B6

so my formula looks like this
=INDIRECT(CHAR(39)&"["&A1&"]"&A2&".xls"&A3"&CHAR(39)&"!"&A4)
this produces a #REF I will be grateful if someone will point me in the
right direction as my syntax is obviously incorrect

Many thanks
--
with kind regards

Spike
 
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
VLOOKUP from closed file using INDIRECT function Ben Excel Worksheet Functions 3 May 17th 06 01:58 AM
INDIRECT function do not work when other file is closed starguy Excel Discussion (Misc queries) 4 May 12th 06 06:57 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Indirect function - Limitations Ken Cobler Excel Worksheet Functions 2 September 16th 05 04:59 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM


All times are GMT +1. The time now is 01:11 PM.

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

About Us

"It's about Microsoft Excel"