Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dodger
 
Posts: n/a
Default Evaluating results of a concatenate formula, as a formula

I have this formula in cell A2.
="='[Register " & VarName & ".xls]Monthly'!$D$20"

Cell B1 has a range name of "VarName" and it contains "2005a".

The result I get is a string:
='[Trust Register 2005a.xls]Monthly'!$D$20

Rather than displaying the string, I want the string to evaluate as a fomula.

Any ideas ?
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 8 Sep 2005 19:46:02 -0700, dodger
wrote:

="='[Register " & VarName & ".xls]Monthly'!$D$20"


So long as the 'Register 2005a' workbook is open, you can use the INDIRECT
worksheet function:

=INDIRECT("'[Register " & VarName & ".xls]Monthly'!$D$20")


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

Hi

Copy cell A2, and PasteSpecial Values
From Edit menu, Replace '=' with '='


--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )


"dodger" wrote in message
...
I have this formula in cell A2.
="='[Register " & VarName & ".xls]Monthly'!$D$20"

Cell B1 has a range name of "VarName" and it contains "2005a".

The result I get is a string:
='[Trust Register 2005a.xls]Monthly'!$D$20

Rather than displaying the string, I want the string to evaluate as a
fomula.

Any ideas ?



  #4   Report Post  
dodger
 
Posts: n/a
Default

Thanks for the reply. I'm going to have 60 of these spreadsheets that pull
data from different files and there will be several formulas similar to this
one in each file. I'm trying to make the formulas dynamic enough that I
don't have to edit each of those formulas.

"Arvi Laanemets" wrote:

Hi

Copy cell A2, and PasteSpecial Values
From Edit menu, Replace '=' with '='


--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )


"dodger" wrote in message
...
I have this formula in cell A2.
="='[Register " & VarName & ".xls]Monthly'!$D$20"

Cell B1 has a range name of "VarName" and it contains "2005a".

The result I get is a string:
='[Trust Register 2005a.xls]Monthly'!$D$20

Rather than displaying the string, I want the string to evaluate as a
fomula.

Any ideas ?




  #5   Report Post  
dodger
 
Posts: n/a
Default

Thanks for your reply. I tried that and the result was #Ref!. Also, because
there will be several of these formulas in this workbook referencing
different files, having them all open will not be practical.

"Ron Rosenfeld" wrote:

On Thu, 8 Sep 2005 19:46:02 -0700, dodger
wrote:

="='[Register " & VarName & ".xls]Monthly'!$D$20"


So long as the 'Register 2005a' workbook is open, you can use the INDIRECT
worksheet function:

=INDIRECT("'[Register " & VarName & ".xls]Monthly'!$D$20")


--ron



  #6   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 9 Sep 2005 04:30:03 -0700, dodger
wrote:

Thanks for your reply. I tried that and the result was #Ref!. Also, because
there will be several of these formulas in this workbook referencing
different files, having them all open will not be practical.

"Ron Rosenfeld" wrote:

On Thu, 8 Sep 2005 19:46:02 -0700, dodger
wrote:

="='[Register " & VarName & ".xls]Monthly'!$D$20"


So long as the 'Register 2005a' workbook is open, you can use the INDIRECT
worksheet function:

=INDIRECT("'[Register " & VarName & ".xls]Monthly'!$D$20")


--ron


That means that either there was no workbook open with the name

'Register 2005a.xls' or that there was not worksheet named Monthly in that
workbook.

But if you cannot have the workbook open, then you cannot use the INDIRECT
function.

However, you could download Laurent Longre's free morefunc.xll add-in from
http://xcell05.free.fr/ and use the INDIRECT.EXT function. This will allow
referencing closed workbooks.

You may need to add more information to "Register" to more fully define the
path name. See HELP for that function to decide if you need to do that.


--ron
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
Formula works in some cells, doesn't in other Wowbagger New Users to Excel 13 June 30th 05 03:21 PM
CONCATENATE formula jkeeton Excel Discussion (Misc queries) 1 April 1st 05 05:33 PM
Help with a formula for concatenate and search/find with 3 columns Mel Excel Worksheet Functions 4 March 7th 05 09:12 PM
How do I prevent incorrect formula results appearing in cell? Marc Todd Excel Worksheet Functions 2 January 26th 05 07:57 AM
If Greater than when a formula Results in N/A John Excel Worksheet Functions 2 December 15th 04 08:19 PM


All times are GMT +1. The time now is 05:58 AM.

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"