JenniferMurphy
Well-known Member
- Joined
- Jul 23, 2011
- Messages
- 2,691
- Office Version
- 365
- Platform
- Windows
In this thread,
AhoyNC provided two worksheet expressions for fitting data to a power equation. The expressions are fairly complex. I fear that I will never remember them and will make many typos trying to type them. So I want to put them in a UDF. But they make use of several worksheet functions. Is there a way to put this expression in VBA without putting "application.worksheetfunction" in front of each function and making the expression span half a dozen lines?
Thanks
Is there any way to access the trendline parameters in cell expressions?
If I have a chart with a trendline, is there any way that I can use the trendline parameters in cell expressions? The chart on the right plots the Conf column on the Y axis against the #Reviews column on the X axis. I found that a power series trendline matches almost perfectly. Now I want to...
www.mrexcel.com
AhoyNC provided two worksheet expressions for fitting data to a power equation. The expressions are fairly complex. I fear that I will never remember them and will make many typos trying to type them. So I want to put them in a UDF. But they make use of several worksheet functions. Is there a way to put this expression in VBA without putting "application.worksheetfunction" in front of each function and making the expression span half a dozen lines?
VBA Code:
=EXP(INDEX(LINEST(LN(D2:D13),LN(B2:B13),,),1,2))
Thanks