#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Retrieve cell value

I want to retrieve a cell value from a closed workbook but the name of the
workbook varies depending the information entered in the active sheet.

I used the concatenate function in cell B4 to identify the workbook name
based on the information entered. For example: Test_June.xls

In the product cell, I have =indirect(B4) but the function doesn't allow me
to enter the column ($L$1) where the data is in the Test_June workbook.
Please, help!



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Retrieve cell value

Open both workbooks (sending and receiving).

Select the sending cell L1 in the sending worksheet in the sending workbook.
Edit|Copy

Select the receiving cell in the receiving worksheet in the receiving workbook.
Edit|paste special|paste link

Close the sending workbook.

Look at that formula (excel will modify it to include the path). That's the
syntax you'll want to use.

But...

If that sending file is not open, then =indirect() returns an error.

(saved from a previous post)

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Gisela wrote:

I want to retrieve a cell value from a closed workbook but the name of the
workbook varies depending the information entered in the active sheet.

I used the concatenate function in cell B4 to identify the workbook name
based on the information entered. For example: Test_June.xls

In the product cell, I have =indirect(B4) but the function doesn't allow me
to enter the column ($L$1) where the data is in the Test_June workbook.
Please, help!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Retrieve cell value



How can I use a variable name file in the indirect?

"Dave Peterson" wrote:

Open both workbooks (sending and receiving).

Select the sending cell L1 in the sending worksheet in the sending workbook.
Edit|Copy

Select the receiving cell in the receiving worksheet in the receiving workbook.
Edit|paste special|paste link

Close the sending workbook.

Look at that formula (excel will modify it to include the path). That's the
syntax you'll want to use.

But...

If that sending file is not open, then =indirect() returns an error.

(saved from a previous post)

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Gisela wrote:

I want to retrieve a cell value from a closed workbook but the name of the
workbook varies depending the information entered in the active sheet.

I used the concatenate function in cell B4 to identify the workbook name
based on the information entered. For example: Test_June.xls

In the product cell, I have =indirect(B4) but the function doesn't allow me
to enter the column ($L$1) where the data is in the Test_June workbook.
Please, help!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Retrieve cell value

If the file is closed, you'll get a ref error with =indirect().

You'll have to use =indirect.ext().

Build the formula without the =indirect.ext() function.

Then share that formula.

And share the cells that contain the name of the file, folder, sheet, range, ...
and the values in those cells.

The formula will change depending on how you've laid out that data.

It could look like this:
=indirect.ext("'C:\My Documents\excel\[master workbook.xls]" & A1 & "'!$A$1")
or
=indirect.ext("'" & x9 & "\[" & z99 & & ".xls]" & A1 & "'!$A$1")
or lots of things...



Gisela wrote:

How can I use a variable name file in the indirect?

"Dave Peterson" wrote:

Open both workbooks (sending and receiving).

Select the sending cell L1 in the sending worksheet in the sending workbook.
Edit|Copy

Select the receiving cell in the receiving worksheet in the receiving workbook.
Edit|paste special|paste link

Close the sending workbook.

Look at that formula (excel will modify it to include the path). That's the
syntax you'll want to use.

But...

If that sending file is not open, then =indirect() returns an error.

(saved from a previous post)

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm

That includes =indirect.ext() that may help you.

Gisela wrote:

I want to retrieve a cell value from a closed workbook but the name of the
workbook varies depending the information entered in the active sheet.

I used the concatenate function in cell B4 to identify the workbook name
based on the information entered. For example: Test_June.xls

In the product cell, I have =indirect(B4) but the function doesn't allow me
to enter the column ($L$1) where the data is in the Test_June workbook.
Please, help!


--

Dave Peterson


--

Dave Peterson
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
Retrieve cell value basis the inputs into a diff cell // sk. sansk_23 Excel Worksheet Functions 5 December 16th 07 08:06 AM
How do I retrieve the text string from the right of a cell JWG Excel Worksheet Functions 4 June 9th 06 03:28 AM
Help - retrieve cell address ppbedz Excel Discussion (Misc queries) 5 April 17th 06 10:45 PM
How do I dynamically retrieve the cell address of the last cell t. Nancy Excel Discussion (Misc queries) 1 December 20th 04 02:52 PM
Retrieve last cell with data JimDandy Excel Worksheet Functions 2 November 20th 04 06:50 PM


All times are GMT +1. The time now is 03:26 PM.

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

About Us

"It's about Microsoft Excel"