LikeLike

]]>LikeLike

]]>LikeLike

]]>See:

LinEstGap with non-linear functions

https://newtonexcelbach.com/2020/03/14/linestgap-with-non-linear-functions/

LikeLike

]]>LikeLike

]]>LikeLike

]]>Linestgap doesn’t work at the moment with the input as you have set up for Linest, because the X and Y ranges have to be ranges of numbers, without the LN(), but if you set up a couple of helper columns it will work. If Col C Is =LN(A2) and Col D is = LN(B2) (both copied down to row 329), then:

=LINESTGAP(D2:D329,C2:C329,,,TRUE)

will return b and LN(a).

Note that the third optional argument (IgnoreErrors) must be set to True if you want to treat #N/A as an empty cell, the default is False.

It would be quite easy to set up another VBA function (say PowerGap) to find the LN values of the input data, and also do the Exp(b) on the result, so you could just enter:

=POWERGAP(B2:B329,A2:A329)

and get the a and b factors returned in an array. I will have a look at that and post something in a few days.

LikeLike

]]>b=LINEST(LN(B2:B329);LN(A2:A329);;)

I apply filters to the data to show #N/A if the data is above or below certain data. I would however like to automatically see how the constants for the equation changes as I change the filter, so I don’t want to manually sort out the #n/a data.

LikeLike

]]>I haven’t tried multi-line graphs, but the auto line detection uses the line colour, so if all the lines are the same colour I imagine it might have problems.

But the manual method would have no problem at all, other than being a bit tedious.

LikeLike

]]>LikeLike

]]>