[Solved] Numbers not recognized as numeric

Discuss the spreadsheet application
Locked
webmanoffesto
Posts: 2
Joined: Thu Aug 14, 2025 3:26 am

[Solved] Numbers not recognized as numeric

Post by webmanoffesto »

I was working on a spreadsheet I use for bookkeeping. I download transactions from a bank, in a text or CSV format. Then I either open that file in Libre Calc or I paste the transactions into Libre Calc. Suddenly yesterday I was doing that and all the numbers were not recognized as numbers. Sometimes the first number in a series was a number, and from the second instance on it was not.

I used =isnumber and it said False
I use =value to try to extract the value
I confirmed that it didn't begin with a single quote, didn't have extra spaces before or after, etc.
I tried regex clean: e.g. =VALUE(SUBSTITUTE(CLEAN(A1), CHAR(160), ""))

Nothing worked.

I usually find Libre Calc a very solid and stable application.

Can you tell me what caused these problems and how to resolve them.

The only solution I found was to use Google Sheets. I guess that has some automatic data cleanup. That worked. But I prefer to go back to Libre Calc.
Last edited by MrProgrammer on Thu Aug 14, 2025 11:54 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] No attachment provided; Problem might have been an incorrect bank download
Libre Office 24.2.7.2
Ubuntu 24.0.2
FJCC
Moderator
Posts: 9563
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Libre Calc, numbers not recognized as numbers

Post by FJCC »

Without an example of the data, it is very hard to make any suggestions. I expect you don't want to post your bank information, but you can modify it easily. Open the csv file in a plain text editor, delete everything except the first few lines, and change the content of those lines so the data are no longer confidential. You should then confirm that the edited file still has the problem when loaded into Calc. Post the file here so people can duplicate your problem and search for a cause. It's possible the forum won't accept a csv file. If so, please post the file on a publicly accessible site.
To upload a file, click Post Reply and look for the Attachments tab just below the box where you type a response.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
robleyd
Moderator
Posts: 5429
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Libre Calc, numbers not recognized as numbers

Post by robleyd »

When you are presented with an ASCII a text import window when opening or pasting data, make sure you check the option Detect special numbers.

See also How to convert number text to numeric data
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 25.8.1.1; SlackBuild for 25.8.1 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue]
Unexpected '{' on line 32
.
User avatar
karolus
Volunteer
Posts: 1232
Joined: Sat Jul 02, 2011 9:47 am

Re: Libre Calc, numbers not recognized as numbers

Post by karolus »

robleyd wrote: Thu Aug 14, 2025 9:12 am …with an ASCII import window …
[nitpicking]there also quite a lot encodings beyond ASCII[/nitpicking]
Libreoffice 25.2… on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (Bookworm) (on RaspberryPI5)
webmanoffesto
Posts: 2
Joined: Thu Aug 14, 2025 3:26 am

Re: Libre Calc, numbers not recognized as numbers

Post by webmanoffesto »

Today I made sure to download the transactions in .txt format. My spreadsheet is again working the way it should.

I'm not sure that I used .csv format yesterday, but if I did, that could have been the source of the problems.
Libre Office 24.2.7.2
Ubuntu 24.0.2
Locked