Apache OpenOffice (AOO) Bugzilla – Issue 18937
#REF! appears in cell when column deleted in XLS spreadsheet (shared formula)
Last modified: 2013-08-07 15:15:02 UTC
Hi, Attached is an XLS spreadsheet which has been reduced but still contains the problem. When column B is deleted the cells D10-D36 end up with #REF! in them. The formula in one of the cells in the original E column (which becomes the D column) is: =TEXT(A8;"dddd") However if the same thing is done in Excel XP no error occurs and the formula is adjusted correctly. If I save the spreadsheet as a Calc spreadsheet, close and reopen the Calc spreadsheet, the spreadsheet now works like Excel XP. If I save the spreadsheet as a Calc spreadsheet and then resave the spreadsheet as an XLS spreadsheet the problem also goes. This is also not a new problem. I have tested this with OO1.0.3.1 and it does not work. Hope this helps. Kelvin
Created attachment 8939 [details] XLS spreadsheet shows #REF! when column B deleted
I can confirm this though I need to investigate it some more. It appears that Excel stores the range E10-E36 as a shared formula and this may offer an explanation why these cells are in error only.
taking ownership
reset to started
set the target
This is a problem of the routine that updates the cell references, either the shared formula should be replaced by individual formulas in this case, but apparently it isn't, or the shared formula itself should be updated. My construction site, grabbing issue.
Accepted.
On branch cws_src680_calc25: sc/source/core/data/cell2.cxx 1.21.78.2
Reopen to reassign.
Reassign to QA.
Restore status.
found fixed using cws calc25 on Linux, Solaris and Windows
closed because fix available in OOo1.9m65