After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 597069 - LINEST to skip invalid data
LINEST to skip invalid data
Status: RESOLVED DUPLICATE of bug 551234
Product: Gnumeric
Classification: Applications
Component: Analytics
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2009-10-02 05:32 UTC by David J. Heinrich
Modified: 2009-10-02 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David J. Heinrich 2009-10-02 05:32:50 UTC
I'm doing polynomial regressions with the following data set (I've omitted the x1-x8 squared numbers)...

x1 = 3.5, y1 = <...actually, an "" from an IF(A1="","",calculation)>
x2 = 7.7, y2 = 
x3 = 8.0, y3 = 
x4 = 11, y4 = 0.0340
x5 = 16, y5 = 0.0376
x6 = 22, y6 = 0.0424
x7 = 32, y7 = 
x8 = 64, y8 = 0.0909

LINEST does not process this, produces errors because of the empty cells. If I delete the IF equations from the cells, LINEST processes them as 0's. An empty cell is not a 0. 

LINEST and other functions ought to have a way to skip invalid data, like the regressions in the chart wizard.
Comment 1 Andreas J. Guelzow 2009-10-02 16:13:46 UTC
First of all it does _not_ produce errors because of empty cells, but because of the specific empty strings. 

As long as we want this function to be XL compatible we unfortunately need to interpret empty cells as 0.
Comment 2 Andreas J. Guelzow 2009-10-02 16:14:55 UTC

*** This bug has been marked as a duplicate of bug 551234 ***
Comment 3 David J. Heinrich 2009-10-02 16:26:52 UTC
Why not make a "LINEST2" function, so that there can still be compatibility with Excel, which does things the wrong way; and so that those of us who want to do things the right way can?
Comment 4 Andreas J. Guelzow 2009-10-02 18:26:22 UTC
Note that I just tried LINEST on Excel 2007, and things seems to have changed. Excel now returns an error in the presence of empty cells. While this is still not great it would at least remove the silent change of empty to 0.