Pivot Chart and slope formulas

jamorin

New Member
Joined
Sep 27, 2008
Messages
33
I have created a Pivot chart from said pivot table. I'd like to be able to use the trendline formula to calculate various values along the trendline, but am having trouble not ending up with #NA errors

I suspect it is in how I am defining the named range x and y. My basic formula for the power trendline is as follows:

Equation y=c*x^b
where
c: =EXP(INDEX(LINEST(LN(y),LN(x),,),1,2))
x: is an input
b: =INDEX(LINEST(LN(y),LN(x),,),1)

I have defined x as the range of the values in the pivot table A5:A10
I have defined y as the range of the figures in column C5:C10

I would like to use the pivot Table as the data set so I can easily change parameters rather than the main data set.

I guess in the simplest terms I can think of, can you use the equation for the trendlines developed from a PivotChart in a formula elsewhere in a worksheet?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,148
Messages
6,123,300
Members
449,095
Latest member
Chestertim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top