Excel Vlookup to Return Formula works except with Indirect function in it -


i need create vlookup return formula evaluate formula returns. have looked , found link gets me half way there.

i have add user defined function workbook:

function eval(ref string)      application.volatile      eval = evaluate(ref) end function 

then, can use eval return formula , evaluate it. works when return normal formula minute put indirect function in returned formula, stops working. need indirect function because workbook used in, not know row on.

the workbook have included shows basic formula (works), formula replaced indirect function (works), vlookup find formula (works), eval vlookup show formula result (works), eval indirect formula (doesn't work), eval vlookup show formula indirect result (doesn't work)

so eval function stops working when ever indirect function added. how fix this?

use index instead of indirect.

index(h:h,row())*30 

the issue getting number of " correct.

enter image description here

i use application.caller.parent.evaluate ensure correct sheet being used.

function eval(ref string)      application.volatile      eval = application.caller.parent.evaluate(ref) end function 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -