Issue 103567 - Sort gives unexpected results on calculated field referencing its own worksheet
Summary: Sort gives unexpected results on calculated field referencing its own worksheet
Status: CLOSED DUPLICATE of issue 101690
Alias: None
Product: Calc
Classification: Application
Component: programming (show other issues)
Version: OOO310m9
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: spreadsheet
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 12:52 UTC by kcr
Modified: 2009-07-20 13:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample spreadsheet (7.56 KB, application/vnd.oasis.opendocument.spreadsheet)
2009-07-15 12:53 UTC, kcr
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kcr 2009-07-15 12:52:03 UTC
version of openOffice : OOO310m11 (Build:9399).
A spreadsheet contains formulas in a column that refer to fields on the same
worksheet. The reference to these fields may or may not include the worksheet name.
If the worksheet name is not included in the cell reference, the sort works as
expected.
If the worksheet name is included in the cell reference, the sort gives
unexpected results.
In Excel, the formulas are completely mixed up. In Calc, the behaviour is also
unexpected, but there seems to be a bit more structure.

It is easy to reproduce :
Create a spreadsheet as follows :
1;2;A1*B1;Sheet1.A1*B1
2;4;A1*B1;Sheet1.A2*B2
3;6;A1*B1;Sheet1.A3*B3
4;8;A1*B1;Sheet1.A4*B4
5;10;A1*B1;Sheet1.A5*B5
Then do a sort descending on column C or D. The first 3 columns sort as
expected, the fourth column does not sort, but the references are changed.
Comment 1 kcr 2009-07-15 12:53:54 UTC
Created attachment 63559 [details]
Sample spreadsheet
Comment 2 kpalagin 2009-07-20 13:00:11 UTC
Seems to be dup of http://www.openoffice.org/issues/show_bug.cgi?id=101690.

*** This issue has been marked as a duplicate of 101690 ***
Comment 3 kpalagin 2009-07-20 13:00:34 UTC
closing