Apache OpenOffice (AOO) Bugzilla – Issue 48496
Excel import: range address in INDEX function does not work
Last modified: 2013-08-07 15:13:53 UTC
A spreadsheet that has been built with MS Excel XP with the following formula: =IF(INDEX(DATEN!$D$6:DATEN!$R$154,$B11,$A11)<>0,INDEX(DATEN!$D$6:DATEN!$R$154,$B11,$A11),"") This xls-file, after opened with OOo 1.9.95 translates the formula to the following: =IF(INDEX($DATEN.$D$6:$DATEN.$R$154;$B11;$A11)<>0;INDEX($DATEN.$D$6:$DATEN.$R$154;$B11;$A11);"") which results in an error message. After replacing "$DATEN" with "DATEN" the error message disappears. So I believe there is a mistake in the way the xls-file is opened.
solid report, confirm
Please attach a document showing this behaviour.
Created attachment 25721 [details] Attached xls file demonstrates the issue if opened with OOo
Problem: DATEN!$D$6:DATEN!$R$154 is stored as dynamic range consisting of two cell addresses, and not as static range address. This confuses Calc, see issue 4904. I will take this issue to add a workaround in the Excel filter. To make this work in Excel and current Calc, you can change the address from DATEN!$D$6:DATEN!$R$154 to DATEN!$D$6:$R$154 (remove the second sheet name) in Excel. Removing the $ before DATEN in Calc has only the effect that the formula is re-interpreted, thus Calc detects a constant range address. The same would happen, if you change something else in the formula, even something meaningless, e.g. F2+SPACE+ENTER. The $ sign is to make the sheet address absolute, similar to $D$6 vs D6. This is a Calc-only feature and does not exist in Excel.
started
fixed in SRC680/dr37 (OOo 2.0.1)
back to QA re-open issue and reassign to oc@openoffice.org
reassign to oc@openoffice.org
reset resolution to FIXED
verified in internal build cws_dr37
closed because fix available in OOo2.0m142