Hey guys, it's been a while. Have an interesting problem that I need some help with. We are graphing some fuel cell data and using the slope to determine internal resistance, R-ohm. I would like to write a macro that will extract this slope from the trendline of the graph. I'm not too familiar with chart objects. I looked through the object browser and found a Chart class (not the ChartObject class) which contained several chart properties and methods. I was unable to find anything to reference the trendline. Also, I'm not entirely sure how to access a chart object on a worksheet. I'm open to any information you guys are willing to offer, and, as always, I am eager to learn.
For your convenience, a portion of the data graphed to obtain the trendline is provided below (excluding the non-linear portion of the graph). This data is not confidential or proprietary.
X Values, Ln(Current Density)
-2.367123614
-2.079441542
-1.85629799
-1.673976434
-1.519825754
-1.386294361
-1.268511325
-1.16315081
Y Values, Cell Potential
1.82
1.76
1.71
1.66
1.62
1.57
1.54
1.5
Trendline: -0.2663x + 1.2042
R^2: 0.991
Thanks guys!
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]
For your convenience, a portion of the data graphed to obtain the trendline is provided below (excluding the non-linear portion of the graph). This data is not confidential or proprietary.
X Values, Ln(Current Density)
-2.367123614
-2.079441542
-1.85629799
-1.673976434
-1.519825754
-1.386294361
-1.268511325
-1.16315081
Y Values, Cell Potential
1.82
1.76
1.71
1.66
1.62
1.57
1.54
1.5
Trendline: -0.2663x + 1.2042
R^2: 0.991
Thanks guys!
-JTBorton
Well, You can try banging your head against the wall, but you just end up with lost-time injuries and damaged equipment. [M. Passman]