Apache OpenOffice (AOO) Bugzilla – Issue 19897
Excel spreadsheet import bug... easy fix.
Last modified: 2013-08-07 15:15:02 UTC
When importing an Excel spreadsheet with cross sheet references, this: =INDIRECT("Sheet2!A1") is valid in Excel and produces an error (ERR: 502 )in oocalc the ! should be replaced with an . then it is valid OOo format.
Created attachment 9568 [details] Excel spreadsheet showing the bug.
Hi Daniel, one4you
It should be noted that the argument string for this function is usually not just a static text. The INDIRECT function is used for creating dynamic cell references on the fly, and the argument string is consequently created by other spreadsheet functions. I don't know much about import filters but I could imagine that this may add some difficulty in parsing the function and finding the correct instance of '!' to replace. As an example, I discovered the bug when this part of a formula created an error: INDIRECT(""&H$219&"!"&H$221&":"&H$221) ...which "resolves" into INDIRECT("Detail!E:E"). I could imagine even worse cases where the '!' is found in the contents of a cell, just like the sheet name and column number was in the example above.
Hi allanolesen, thanks for your comments. That is exactly the reason, why the import/export filters will *never* change the contents of a document, especially strings in formulas.
wontfix->closed