Hello all,
I am new to the forums and am trying to resolve a VBA error I keep getting using the SLOPE function. (Note: I looked at the other topics and could not get the solutions to work for my issue)
I am trying to analyze a set of data in Excel that varies week to week.
Yield 1 Yield 2 Final Yield
1 99.5% 99.5% 99.0%
2 98.2% 98.2% 96.4%
3 97.5% 97.5% 95.1%
4 98.2% 98.2% 96.4%
5 99.0% 99.0% 98.0%
6 99.3% 99.2% 98.5%
7 99.0% 99.3% 98.3%
8 99.2% 99.7% 98.9%
9 99.4% 99.8% 99.2%
10 99.5% 99.8% 99.3%
Cellcount RangeStart RangeEnd
10 9 11
Xrange Yrange Slope
A9:A11 D9
11 0.001993
I want to calculate the SLOPE of the last 3 data values(Final Yield) so that I can trigger a trend indicator that shows me if I am trending up or down. Each week a new set of data points is added to the spreadsheet.
I was able to use the COUNTIF and CONCATENATE functions to create the ranges needed for the SLOPE formula, but I can't figure out a way to use these text strings in the formula because they aren't the right data type.
I have tried to calculate the SLOPE using VBA and defining the different variables, but I get to the same point in VBA where the SLOPE function does not accept the text string entered.
Any help would be greatly appreciated.
Thanks!
I am new to the forums and am trying to resolve a VBA error I keep getting using the SLOPE function. (Note: I looked at the other topics and could not get the solutions to work for my issue)
I am trying to analyze a set of data in Excel that varies week to week.
Yield 1 Yield 2 Final Yield
1 99.5% 99.5% 99.0%
2 98.2% 98.2% 96.4%
3 97.5% 97.5% 95.1%
4 98.2% 98.2% 96.4%
5 99.0% 99.0% 98.0%
6 99.3% 99.2% 98.5%
7 99.0% 99.3% 98.3%
8 99.2% 99.7% 98.9%
9 99.4% 99.8% 99.2%
10 99.5% 99.8% 99.3%
Cellcount RangeStart RangeEnd
10 9 11
Xrange Yrange Slope
A9:A11 D9
I want to calculate the SLOPE of the last 3 data values(Final Yield) so that I can trigger a trend indicator that shows me if I am trending up or down. Each week a new set of data points is added to the spreadsheet.
I was able to use the COUNTIF and CONCATENATE functions to create the ranges needed for the SLOPE formula, but I can't figure out a way to use these text strings in the formula because they aren't the right data type.
I have tried to calculate the SLOPE using VBA and defining the different variables, but I get to the same point in VBA where the SLOPE function does not accept the text string entered.
Any help would be greatly appreciated.
Thanks!