Inputting a cells value into a trendline equation.

jadif01

New Member
Joined
Jul 18, 2013
Messages
5
I have managed to extract the trendline from a graph to a cell and now wish to input different values of x so I am able to plot more points. The values of x are already in a range of cells. I have managed to reduce the formula down to:

1.81ln*(x)+1.6161

to hopefully make it easier. I have values for x in one column and wish to work out subsequent values of y in another. I would like to learn how to do this in VBA as I want to create a Macro to do this so I am able to run it for different sets of data.

Any help would be greatly appreciated! :)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
column a = values of x column b = formula

A1 = G1 say
A2 = G1 + increment
A3=A2 + increment

increment could be in cell H1

this lets you rapidly put in different values of X
 
Upvote 0
gives you a way of setting the range of x values ie the start value and the increment, your formula calculates the Y and you plot the graph.
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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