Issue 19897

Summary: Excel spreadsheet import bug... easy fix.
Product: Calc Reporter: jesperkrogh <jesper>
Component: codeAssignee: daniel.rentz
Status: CLOSED WONT_FIX QA Contact: issues@sc <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1 RC4   
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Excel spreadsheet showing the bug. none

Description jesperkrogh 2003-09-22 15:18:33 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.
Comment 1 jesperkrogh 2003-09-22 15:19:26 UTC
Created attachment 9568 [details]
Excel spreadsheet showing the bug.
Comment 2 oc 2003-09-22 15:32:04 UTC
Hi Daniel, one4you
Comment 3 Unknown 2003-09-22 16:57:39 UTC
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.
Comment 4 daniel.rentz 2003-09-23 11:02:59 UTC
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.
Comment 5 daniel.rentz 2003-10-27 16:06:05 UTC
wontfix->closed