GNOME Bugzilla – Bug 651667
GENERAL Style/Formatting Confusion
Last modified: 2011-06-04 15:22:03 UTC
Enter 1....10 in A1 to A10 Format A1 to A10 to scientific notation Insert a new column A Enter 1...10 in A1 to A10 Note: A1 to A10 are now also formatted in scientific notation Select A1 to A10 and open format->cells->format Note that the formatting is "Scientific", change it to general, okay Note: A1 to A10 are still formatted in scientific notation. Open format->cells->format and see that apparently the format wasn't changed to GENERAL. Do we intend to have the meaning of GENERAL change?
Note that if you now insert another column A and enter 1..10 in A1:A10 then those are again show as 1...10 so GENERAL seems to work. Changing the now cells B1:B10 to GENERAL still doesn't work though.
That would mean that the values have acquired a format which overrides the cells' format.
Yup. Value format. I'm not sure why we even have those. <gnm:Cell Row="0" Col="0" ValueType="40" ValueFormat="0E+00">1</gnm:Cell> <gnm:Cell Row="0" Col="1" ValueType="40" ValueFormat="0E+00">1</gnm:Cell> <gnm:Cell Row="1" Col="0" ValueType="40" ValueFormat="0E+00">2</gnm:Cell> <gnm:Cell Row="1" Col="1" ValueType="40" ValueFormat="0E+00">2</gnm:Cell> <gnm:Cell Row="2" Col="0" ValueType="40" ValueFormat="0E+00">3</gnm:Cell> <gnm:Cell Row="2" Col="1" ValueType="40" ValueFormat="0E+00">3</gnm:Cell> <gnm:Cell Row="3" Col="0" ValueType="40" ValueFormat="0E+00">4</gnm:Cell> <gnm:Cell Row="3" Col="1" ValueType="40" ValueFormat="0E+00">4</gnm:Cell> <gnm:Cell Row="4" Col="0" ValueType="40" ValueFormat="0E+00">5</gnm:Cell> <gnm:Cell Row="4" Col="1" ValueType="40" ValueFormat="0E+00">5</gnm:Cell>
Created attachment 189160 [details] [review] Tentative patch This patch simplifies matters and fixes a few bugs in the process. After this, we don't attach a value format unless it actually overrides the cell format. The patch touches a very fundamental function so we had better test it well.
I have tried lots of things relating to formats but haven't seen anything strange happening.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
It occurred to me that one place where value formats might be useful is in context with the HYPERLINK function: In Excel, the return value of any expression containing the HYPERLINK function has a hyperlink attached (the target obtained by evaluating the expression again but this time using the other argument of every HYPERLINK()0.