Bug 111920 - Cells no automatically recalculated when formula is dependent of language and this is changed
Summary: Cells no automatically recalculated when formula is dependent of language and...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Formula
  Show dependency treegraph
 
Reported: 2017-08-19 23:00 UTC by Luis
Modified: 2023-05-25 03:26 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luis 2017-08-19 23:00:41 UTC
Al least function TEXT is dependent of language in the format code argument.

When the lenguage of cell is English (decimal separator is ".") the formula

TEXT(12345/10,"#.000") returns "1234.500"

but when the lenguage of cell is Spanish (decimal separator is ",") the formula

TEXT(12345/10,"#.000") return "1.235"

When you change cell language in the "Format cells" dialog or when you change locale settings in Tools -> Options... -> Language Settings -> Languages and the result of the function is diferent, the cell is not automatically recalculated.

Procedure to test first case:

1) Create a new calc file

2) Set language of cell A1 to "English (USA)" (not starting with default)

3) Enter formula in cell A1

=TEXT(12345/10,"#.000")

Result show in cell is 1234.500

4) Change language of cell A1 to "Spanish (Spain)" (not starting with default)

Nothing changes in result

5) Over cell A1 press F9

Result changes to 1.235

Procedure to test second case:

1) In Tools -> Options... -> Language Settings -> Languages set locale settings to "English (USA)"

2) Create a new calc file

3) Enter formula in cell A1

=TEXT(12345/10,"#.000")

Result show in cell is 1234.500

4) In Tools -> Options... -> Language Settings -> Languages set locale settings to "Spanish (Spain)"

Nothing changes in result

5) Over cell A1 press F9

Result changes to 1.235
Comment 1 m_a_riosv 2017-08-21 14:17:34 UTC
Does it work a hard recacl [Ctrl+Shft+F9]
Comment 2 Luis 2017-08-21 21:39:45 UTC
When done a hard recalc all the cells are recalculated.

Also I think I have found a unexpected behaviour of standard recalculate (F9).

As specified pressing the F9 key should not recalculate the cells with the formulas that use TEXT but in fact the cell in which is the cursor (but only that cell) is recalculated.
Comment 3 m_a_riosv 2017-08-21 22:14:43 UTC
[F9] recalcs all modified cells and dependents, but some matrix functions needs a hard recalc.

Please @Eike can confirm what it's the proper behavior bere.
Comment 4 Luis 2017-08-22 08:10:18 UTC
I looked at functions FIXED and DOLLAR:

FIXED(12345/10,2,false)

returns "1,234.50" in english and "1.234,50" in spanish.

DOLLAR(12345/10,2)

returns "$1,234.50" in english and "1.234,50 €" in spanish.

When you change cell language in the "Format cells" and the result of the function is diferent nothing changes as only consider locale settings in Tools, Options.

When you change locale settings in Tools -> Options... -> Language Settings -> Languages and the result of the function is diferent, the cell is not automatically recalculated. The cell is recalculated when you press [F9] over cell or when you press [Ctrl+Shft+F9].
Comment 5 raal 2018-07-27 15:38:04 UTC
I can confirm with Version: 6.2.0.0.alpha0+
Build ID: b7e139fa21607f488465fd87333db757ad0c91a2
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk3; 
and 4.1

When the lenguage of cell is English (decimal separator is ".") the formula
TEXT(12345/10,"#.000") returns "1234.500"
but when the lenguage of cell is Spanish (decimal separator is ",") the formula
TEXT(12345/10,"#.000") return "1.235"
When you change cell language in the "Format cells" dialog or when you change locale settings in Tools -> Options... -> Language Settings -> Languages and the result of the function is diferent, the cell is not automatically recalculated

---
informational message:
Because the current formula separator settings conflict with the locale, the formula separators have been reset to their default values.

can be tweaked or we should trigger recalculation.
Comment 6 QA Administrators 2019-08-03 03:05:58 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2021-08-04 03:45:31 UTC Comment hidden (obsolete)
Comment 8 Diana Vides 2023-05-25 03:26:08 UTC
It is still present in version 7.5.2.2

Version: 7.5.2.2 (X86_64) / LibreOffice Community
Build ID: 53bb9681a964705cf672590721dbc85eb4d0c3a2
CPU threads: 6; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: es-ES (en_US); UI: en-US
Calc: threaded