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: 2025-05-25 03:11 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
Comment 9 QA Administrators 2025-05-25 03:11:22 UTC
Dear Luis,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug