Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Non VB Help -

HI Everyone,

I posted this question in the other forum for Excel but no response so far hence I am posting it here.
--------------------------------------------

Is there a way to execute the result of =concatenate formula.

I have following formula =(CONCATENATE(B2,B15,B11,B3,B4))

That results in cell b19 as ... VLOOKUP($h$10,'[Client Outstanding Status-2012.xls]Salvage Outstanding'!C1056:$P$3000,2,FALSE)

I would like to execute this in cell b20 as a vlookup formula.

Is there a way to do it without going into VBA?

Thanks
Naeem
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default Non VB Help -

hi Naeem,

=EVAL(INDIRECT("B19"))

--
isabelle



Le 2012-06-22 08:45, Naeem a écrit :
HI Everyone,

I posted this question in the other forum for Excel but no response so far hence I am posting it here.
--------------------------------------------

Is there a way to execute the result of =concatenate formula.

I have following formula =(CONCATENATE(B2,B15,B11,B3,B4))

That results in cell b19 as ... VLOOKUP($h$10,'[Client Outstanding Status-2012.xls]Salvage Outstanding'!C1056:$P$3000,2,FALSE)

I would like to execute this in cell b20 as a vlookup formula.

Is there a way to do it without going into VBA?

Thanks
Naeem

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Non VB Help -

Thanks Isabelle...but I am getting the #NAME? error.

I do not have EVAL function in the excel.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default Non VB Help -

oops sorry this is a function from Morefunc written by Laurent Longre

http://download.cnet.com/Morefunc/30...-10423159.html

--
isabelle



Le 2012-06-22 09:28, Naeem a écrit :
Thanks Isabelle...but I am getting the #NAME? error.

I do not have EVAL function in the excel.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Non VB Help -

eval works but I have to have the other file open.

Thanks everyone for your help
Naeem


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Non VB Help -

On 22/06/2012 13:45, Naeem wrote:
HI Everyone,

I posted this question in the other forum for Excel but no response so far hence I am posting it here.
--------------------------------------------

Is there a way to execute the result of =concatenate formula.

I have following formula =(CONCATENATE(B2,B15,B11,B3,B4))

That results in cell b19 as ... VLOOKUP($h$10,'[Client Outstanding Status-2012.xls]Salvage Outstanding'!C1056:$P$3000,2,FALSE)

I would like to execute this in cell b20 as a vlookup formula.

Is there a way to do it without going into VBA?

Thanks
Naeem


I can't think of one. The simplest VBA to do what you want would be to
add a UDF to export Evaluate() to the spreadsheet.

Something in the Workbook code nodule along the lines of:

Function myeval(s) As Variant
myeval = Evaluate(s)
End Function


Sub test()
a = myeval("=3+4")
b = myeval("=Sin(pi())")
End Sub

Sub INstall()
Application.MacroOptions Macro:="myeval(s)", Category:="MyEval"
End Sub

Ought to do it. Might be rather flakey with syntax errors tho.
Works OK from the spreadsheet with string expressions.

You may have to force the expression to be a string for it to work.

ie in cell B20 put something like

=myeval("=" & B19)

ISTR =myeval(B19) won't work.

--
Regards,
Martin Brown
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



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