dougf1r
asked on
Extract equation parameters from chart
Hello,
The attached worksheet contains a script (CreateCharts) that outputs a series of line charts and scatter charts (based on a range of input data) to a sheet named "Charts".
Each scatter chart on the "Charts" sheet contains an equation for a linear trendline.
The other script (SlopeTable) contained within this workbook is designed to read each chart and extract the chart title and slope of the trendline from the equation on the chart.
I am in need of an amendment to the SlopeTable script that will read the equation on only the scatter charts and write the chart title, slope, y-intercept, and R-squared values to a table in the sheet named "Params_Table".
For an example, I have shown the desired results for the first scatter chart (labeled as BR1) in row 2 of the "Params_Table". I entered these values manually.
Many thanks in advance to anyone who may be able to add this functionality,
equation-parameters-to-table.xlsm
The attached worksheet contains a script (CreateCharts) that outputs a series of line charts and scatter charts (based on a range of input data) to a sheet named "Charts".
Each scatter chart on the "Charts" sheet contains an equation for a linear trendline.
The other script (SlopeTable) contained within this workbook is designed to read each chart and extract the chart title and slope of the trendline from the equation on the chart.
I am in need of an amendment to the SlopeTable script that will read the equation on only the scatter charts and write the chart title, slope, y-intercept, and R-squared values to a table in the sheet named "Params_Table".
For an example, I have shown the desired results for the first scatter chart (labeled as BR1) in row 2 of the "Params_Table". I entered these values manually.
Many thanks in advance to anyone who may be able to add this functionality,
equation-parameters-to-table.xlsm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks for the responses.
Rgonzo1971 has the correct solution.
The response from gowflow causes the last four ID's to repeat the same value for each parameter. Not sure why this occurs? I do like the pop-up message window after execution.
Rgonzo1971 has the correct solution.
The response from gowflow causes the last four ID's to repeat the same value for each parameter. Not sure why this occurs? I do like the pop-up message window after execution.
download the file make sure macros are activated and position yourself in any sheet and activate the macro called SlopeTable and check the results.
Rgds/gowflow
equation-parameters-to-table.xlsm