Bug 165217 - [EDITING] Alt + Enter after a number in a cell changes its category from Text to Number
Summary: [EDITING] Alt + Enter after a number in a cell changes its category from Text...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Cells
  Show dependency treegraph
 
Reported: 2025-02-12 12:10 UTC by LeroyG
Modified: 2025-08-24 18:17 UTC (History)
2 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 LeroyG 2025-02-12 12:10:08 UTC
Steps to reproduce:
1. Give some cells range the category Text¹ (with styles or direct formatting).
2. Select the range, type some text or number.
3. Accept with Alt + Enter.

Actual results:
Cell category is changed to Number Standard.

Expected results:
Cell category remains as Text.

The issue is evident (by the alignment) when entering numbers that must be treated as text (i.e., codes).
As a workaround, you must hit Enter (or F9) then copy and paste the value from the first cell.

¹Notice that the Text cell style uses the category Number (not Text).

Tested with:

Versión: 6.4.7.2 (x64)
Id. de compilación: 639b8ac485750d5696d7590a72ef1b496725cfb5
Subprocs. CPU: 4; SO: Windows 10.0 Build 17763; Repres. IU: predet.; VCL: win; 
Configuración regional: es-AR (es_AR); Idioma de IU: es-ES
Calc: threaded

Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 17763); UI render: Skia/Raster; VCL: win
Locale: es-MX (es_AR); UI: en-US
Calc: threaded
Comment 1 m_a_riosv 2025-02-12 21:02:20 UTC
Reproducible
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6042e60d69c40d1f307710e60a278cb286d68603
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (es_ES); UI: en-US
Calc: CL threaded

Inherited from OOo
Different behavior than Excel.
Comment 2 LeroyG 2025-02-18 14:21:47 UTC
As a workaround:
1. =
2. =
3. Accept with F9 (Recalculate) and Ctrl+D (Duplicate).
Comment 3 LeroyG 2025-02-18 15:22:57 UTC
(In reply to LeroyG from comment #2)
> As a workaround:
> 1. =
> 2. =
> 3. Accept with F9 (Recalculate) and Ctrl+D (Duplicate).

A drawback of this workaround, is that the content must be entered in the upper cell of the range to be filled.
Comment 4 LeroyG 2025-03-13 21:18:51 UTC
Reproducible with:

Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: gtk3
Locale: es-MX (en_US.UTF-8); UI: en-US
Calc: threaded