I have about 25,000 rows of data (oil production data over time) -- some are complete ranges, but most have a few blanks. I need the decline rate of each row (ie. a coefficient in the exponential trendline), and so it seems to avoid making 25,000 charts and fitting exp trendlines, I can use either LOGEST or an INDEX LINEST (below):
Equation: y = c *e ^(b * x)
c: =EXP(INDEX(LINEST(LN(y),x),1,2))
b: =INDEX(LINEST(LN(y),x),1)
These both work for rows without blanks. I have tried inserting IF(ISERROR(etc.. into both formulas to simply skip the blanks, but I just get errors. I'd prefer to avoid finicky fixes like just removing the blanks, or filling in the blanks by averaging the surrounding data, because I need to repeat this on many sheets.
Any ideas how to make either LOGEST or INDEX(LINEST(LN(y),x),1) skip blanks? I've spent days searching blogs for a solution to no avail. Thanks!!
Equation: y = c *e ^(b * x)
c: =EXP(INDEX(LINEST(LN(y),x),1,2))
b: =INDEX(LINEST(LN(y),x),1)
These both work for rows without blanks. I have tried inserting IF(ISERROR(etc.. into both formulas to simply skip the blanks, but I just get errors. I'd prefer to avoid finicky fixes like just removing the blanks, or filling in the blanks by averaging the surrounding data, because I need to repeat this on many sheets.
Any ideas how to make either LOGEST or INDEX(LINEST(LN(y),x),1) skip blanks? I've spent days searching blogs for a solution to no avail. Thanks!!