So I have some spreadsheets made to do some caclulations on data I get from a possible set of 20 test runs. EX:
Run Y X
1 2 4.78
.....
20 6.23 5.09
The worksheet works fine as long as there are the complete set of 20 runs. My problem is that on a given day I may do a few less runs and so I want a formula or VBA to be able to only account for the runs that I do on that day. As you can see from my attached worksheet the first page titled LINEAR works fine and doesn't use the LinEst function. So delete the last couple of runs (blue numbers) and press update numbers on the LINEAR worksheet and go to the subsequent worksheets (POLYNOMIAL, LOGARITHMIC, EXPONENTIAL, POWER) and you can see at the top of the pages the trendline coefficients that are highlighted that give me a #VALUE error when there are fewer runs. Any kind of help would be greatly appreciated (just a better formula or VBA)
Bookmarks