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 442941 - Formula guru should auto-quote arguments that fail to parse
Formula guru should auto-quote arguments that fail to parse
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
1.7.x
Other All
: Normal enhancement
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2007-06-01 15:36 UTC by hussain
Modified: 2009-12-29 07:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A sample of the problem can be downloaded from this link: http://www.mediafire.com/?cm2qbzbvt6v (2.20 KB, text/plain)
2007-06-01 17:05 UTC, hussain
Details

Description hussain 2007-06-01 15:36:28 UTC
When i try to work with the (IF) function in gnumeric , i cant change 
the ( true,false) in the Formula guru to other words as i like for example: (pass,fail,high,low,good,bad .....etc ).
In Microsoft Excel you can put any word you want instead of true,false and it will exept it , but here you can't do that , if you write another word it will give you this result ( #NAME? ).
Im not shure if that is a bug or just i dont know how to use it or i should use another function for that.
I hope some one can help with that.
Comment 1 Jody Goldberg 2007-06-01 16:48:07 UTC
Can you give use a sample file with that usage ?
or a detailed example of what to enter.
Comment 2 hussain 2007-06-01 17:05:19 UTC
Created attachment 89191 [details]
A sample of the problem can be downloaded from this link:
http://www.mediafire.com/?cm2qbzbvt6v

I attached a file containing the problem , i hope it will be clear for you.
Comment 3 hussain 2007-06-01 17:12:28 UTC
I'm sorry here is the link to download the file :
http://www.mediafire.com/?cm2qbzbvt6v
Comment 4 Andreas J. Guelzow 2007-06-01 17:24:42 UTC
You probably want to enter "pass" with the quotation marks rather than just pass without quotation marks. Excel assumes that if a name is undefined you may mean the literal string.
Comment 5 hussain 2007-06-01 18:20:31 UTC
(In reply to comment #4)
> You probably want to enter "pass" with the quotation marks rather than just
> pass without quotation marks. Excel assumes that if a name is undefined you may
> mean the literal string.
> 

No sir , i want to enter 'pass' without the quotation marks, i did not understand exactly what you mean (not so good in English)  but what i just want to do is to change the word 'True' to be 'pass' , thats all what i want to do not more.
I'll be thankful if you can give me a simple way on how to do that or send me the solution on the same file attached to this report so i can learn from.
 
Comment 6 Jody Goldberg 2007-06-01 18:35:47 UTC
Entering this on the command line in XL it generates '#NAME?'
Entering it in the function dialog adds the necessary quotes.
Comment 7 hussain 2007-06-02 10:33:35 UTC
Its ok now this report should be closed.
Comment 8 Jody Goldberg 2007-06-02 15:34:40 UTC
This seems like a reasonable enhancement, we'll leave it open.
Comment 9 Andreas J. Guelzow 2008-10-02 19:18:41 UTC
Jody: there are some problems with that enhancement.

Suppose I use the formula guru to enter =sum(current, previous)
and see that I get value, I may remember that I haven't defined the "previous" cell yet. So I go to define names, perform that definition and the entered formula is correct.

If the enhancement is implemented, then first of all I do not get any error indication, so my sum will miss the previous amount. Moreover, if I define the previous cell (perhaps I noticed that the calculation was wrong) my formula still remains incorrect. 

Under these circumstances I do not see any benefit of the formula guru adding quotation marks.
Comment 10 Andreas J. Guelzow 2009-12-29 07:23:13 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.