Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BorisS
 
Posts: n/a
Default indirect reference

I want to have two cells where one tells me the name of a file, and the other
tells me the name of a sheet tab in that file. I would like to be able to
use those two values in a cell to complete a reference to a cell (let's say
B2 of that file's tab). What is the formatting for this?

Thx.
--
Boris
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=INDIRECT("'["&A1&"]"&B1&"'!B2")

file name in A1 and sheet name in B1

--
Regards,

Peo Sjoblom

(No private emails please)


"BorisS" wrote in message
...
I want to have two cells where one tells me the name of a file, and the
other
tells me the name of a sheet tab in that file. I would like to be able to
use those two values in a cell to complete a reference to a cell (let's
say
B2 of that file's tab). What is the formatting for this?

Thx.
--
Boris


  #3   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi


"Peo Sjoblom" wrote in message
...
=INDIRECT("'["&A1&"]"&B1&"'!B2")

file name in A1 and sheet name in B1


But... the file you are referring to must be opened - otherwise the formula
returns an error!


Arvi Laanemets



--
Regards,

Peo Sjoblom

(No private emails please)


"BorisS" wrote in message
...
I want to have two cells where one tells me the name of a file, and the
other
tells me the name of a sheet tab in that file. I would like to be able
to
use those two values in a cell to complete a reference to a cell (let's
say
B2 of that file's tab). What is the formatting for this?

Thx.
--
Boris




  #4   Report Post  
BorisS
 
Posts: n/a
Default

is there a way that the error can be avoided? Short of converting to values,
of course. I'd like these to be similar to other links, where even if I
don't update them when I open the file (and the source files are closed), the
previous values still show.

Thx if you can help out.
--
Boris


"Arvi Laanemets" wrote:

Hi


"Peo Sjoblom" wrote in message
...
=INDIRECT("'["&A1&"]"&B1&"'!B2")

file name in A1 and sheet name in B1


But... the file you are referring to must be opened - otherwise the formula
returns an error!


Arvi Laanemets



--
Regards,

Peo Sjoblom

(No private emails please)


"BorisS" wrote in message
...
I want to have two cells where one tells me the name of a file, and the
other
tells me the name of a sheet tab in that file. I would like to be able
to
use those two values in a cell to complete a reference to a cell (let's
say
B2 of that file's tab). What is the formatting for this?

Thx.
--
Boris





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
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Absolute Worksheet reference number Tony M Excel Discussion (Misc queries) 4 March 21st 05 06:10 PM
dependent combo box list, with indirect reference Iyue Excel Discussion (Misc queries) 1 February 24th 05 10:45 PM
Indirect reference from one worksheet to another Bill Sturdevant Excel Worksheet Functions 2 December 17th 04 01:23 PM


All times are GMT +1. The time now is 06:15 AM.

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"