Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default Variable cell referencing

Hey all,

I could really use some help. I need to create a formula to reference many
different external sheets at once automatically.

Column A Column B
Name1 \\Home\Folder\Name1.xls
Name2 \\Home\Folder\Name2.xls
Name3 \\Home\Folder\Name3.xls

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 108
Default Variable cell referencing

There's a standard syntax for pointing your formulae at cells in outside
workbooks. As I recall, it works like this:

[drive:\FileName.xls]SheetName!CellRef

Use single quotes around the whole thing if there's a space in the file
name. But the best way to be sure I'm not steering you wrong is this:

1) Open your home workbook (let's say it's called MyBook.xls).

2) Open the "foreign" workbook (drive:\Path\Foreign.xls), so that both
workbooks are open at the same time.

3) Point your formula to the target cell by the usual arrow-key method. For
example, in R5C3 of MyBook, type "=" and instead of finishing the formulae
just hit <Ctl-Tab, which switches to the next workbook. Use <Ctl-PgUp and
<Ctl-PgDn to navigate to the sheet you want, and the arrow keys to point to
a certain cell, say R12C1. Hit <Enter to complete the formula.

At this point the formula probably reads
"=[Foreign.xls]SheetName!R[7]C[-2]", which tells you something about the
right syntax when the foreign workbook is open but not the rest of the time.
So:

4) Close the other workbook and check the formula again. In my test copy,
at least, now the formula reads

='drive:\path\[Foreign.xls]SheetName'!R[7]C[-2]

Note the placement of the quotes, which is not what I told you above. Not
only does that tell you the correct syntax for referring to outside workbooks
in your formulae, you can use this technique to create the references rather
than typing them all out, which can be laborious when the path is long.

--- "Paul" wrote:
I need to create a formula to reference many different external sheets at
once automatically.

Column A Column B
Name1 \\Home\Folder\Name1.xls
Name2 \\Home\Folder\Name2.xls
Name3 \\Home\Folder\Name3.xls

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
Referencing tab based on Variable Chad Excel Worksheet Functions 2 June 8th 07 03:48 PM
Variable in VLOOKUP and referencing a cell another file in excel Dave T at home Excel Worksheet Functions 1 August 9th 06 03:14 AM
Variable Cell Referencing 0-0 Wai Wai ^-^ Excel Worksheet Functions 3 June 16th 06 09:34 AM
Referencing a Value in variable length columns. Kevin Excel Worksheet Functions 11 January 28th 06 11:01 AM
Referencing Variable Name Worksheets camerons New Users to Excel 8 May 9th 05 09:57 PM


All times are GMT +1. The time now is 02:19 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"