I have table with consecutive counting months and days and I use the LINEST function to calculate the linear regression of the latest month but it doesn't work very well when a month have only one entry. This is the reason why I'm looking for a way to get the largest value from a list (the months) but only if it has at least two points (two enrties).
Here something more concrete, the table looks like something like this one:
Month Day Value 2 33 20 2 45 24 2 54 27 3 65 30 3 78 35 3 87 39 4 92 45
I use the LINEST function with the FILTER function to calculate the linear regression of the last month.
With this formula the LINEST function returns for the 4th month the values 0 and 45, what actually a quite useless linear regression is.![]()
Please Login or Register to view this content.
In this case I would like to have the linear regression still starting from the 3rd month although there is already a entry in the 4th month.
What I'm looking for is to replace thewith a formula which returns 3 instead of 4 if there is only one entry for the largest value.![]()
Please Login or Register to view this content.
Thanks in advance
Bookmarks