![]() |
File reference
I am trying to reference data in an external workbook and would like to save
some typing. Each row has the same references, but to a different file. I would like to just type the file name in the first cell and have each of the following cells use that cell to get the file name and perform the function. For instance: ='[external_file.xls]Enterprise Architecture'!$B$3 But the formula would contain some function that would get external_file.xls from the first cell. |
File reference
Hi
You can use INDIRECT function to create a link, of-course, but there is a drawback - INDIRECT needs source file to be opened - otherwise it returns an error. When addressing by cell value is needed only for designing purpouses, then my advice is to use this alternative technique: Into some column, p.e. A, enter workbook names. In another column, enter the formula like this: ="='[" & A1 & "]Sheet1'!A1" and copy it down Select the range with formulas. Copy, and then PasteSpecialValues. Leaving the range selected, replace all "=" with "=". It's done! -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "TJW JR" <TJW wrote in message ... I am trying to reference data in an external workbook and would like to save some typing. Each row has the same references, but to a different file. I would like to just type the file name in the first cell and have each of the following cells use that cell to get the file name and perform the function. For instance: ='[external_file.xls]Enterprise Architecture'!$B$3 But the formula would contain some function that would get external_file.xls from the first cell. |
File reference
Assuming your file name is in A1
the formula =MID(A1,FIND("[",A1)+1,FIND("]",A1)-1-FIND("[",A1)) will bring back whatever is between [ and ]. Gizmo63 "Ron de Bruin" wrote: Try this one http://www.rondebruin.nl/summary2.htm -- Regards Ron de Bruin http://www.rondebruin.nl "TJW JR" <TJW wrote in message ... I am trying to reference data in an external workbook and would like to save some typing. Each row has the same references, but to a different file. I would like to just type the file name in the first cell and have each of the following cells use that cell to get the file name and perform the function. For instance: ='[external_file.xls]Enterprise Architecture'!$B$3 But the formula would contain some function that would get external_file.xls from the first cell. |
All times are GMT +1. The time now is 01:04 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com