Need help to modify a Calc Macro for 3D spline
interpolation algo
this is use for the efficiency and Power factor of electrial motors
AC 3 Phases
all my motors data are on one specific page
i have like 20 Motor size - from 1 HP to 400 HP
i tried to change the address in the macro call and
tried with indirect address or else ect.
and it does not work
here is the Function call in a cell
Macro call
= cubspline(1,W18*100, $‘Spline HP’.B194:B207,$‘Spline HP’.$C194:$C207)
Description of parameters
W18 * 100
this is the motor loading in %
$‘Spline HP’.B194:B207,$‘Spline HP’.$C194:$C207
this is the address for the motor Spec
so each time i change the motor Size i have to manually
provide the data addresses
which is very tedious
now this is working fine but not flexible at all!
I would like to find a way to modify the macro parameters
to make it easier to use
Example
= cubspline(1, HP , Loading , EFF )
HP
this would be the Motor size in HP
Loading
this is same as before = % Motor Loading
EFF
this would select the curve type
like = Eff or PF or else
so this would mean finding a way to pre define inside the Macro
the data address for each motor size and the selected curve
and keep executing the rest of the spline macro
There must be a way to use a long If statement or else
to define the data address for each motor size and curve
Note:
if needed i can upload a sample file to check and test let me know
so how can this be done ?
any help appreciated
thanks
have a nice day