Trendlines, financial charts.

nqsty

New Member
Joined
Aug 8, 2011
Messages
1
Hello everyone, this is my first post on this forum, so even though I read the rules I hope I don't step on anyone's toes.

I am trying to find a way to implement a trendline in a simple time series graph, but by selecting the two points on the graph directly.

Ideally, I'd need a small scroll down menu, click "add trend-line", select two points through which the trend-line would pass through, and then maybe add the r^2 and the equation somewhere.

This would allow me to add 3 or 4 trend-lines on a same graph, and show all the equations below the graph.

I can take care of all the small details of course, but for the major part, the actual data selection, does anyone have an idea how I could do this with a VBA macro ? (or 10?)

Thanks in advance, Nqsty
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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