Formaula to determine the best regression type and then calculate a formula to determine Y value from a predicted x value.

D_Spark

Board Regular
Joined
Feb 4, 2007
Messages
232
Im wanting to generate a formula to generation regression values, without the need to redo series values in graphs. Values in range (A2:A7) are changeable.

I have a workbook with the following values

A2=10
A3=20
A4=30
A5=40
A6=50
A7=60

A17=10



I’m wanting to generate a formula in cell C17 that will show the best R2 value, either by using Exponential / Linear/ Logarithmic / Polynomial / Power or Moving Average types. This will be obtained from calculating the highest r-squared value for each of the methods.

In D17 I want the test of the equation to be shown

Once the type is determined, in E17, I want to use the equation and the x value from A17 to return the Y value

I have been struggling with this for a while and nobody seems able to assist.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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