[Solved] Remove leading apostrophe from cells

Discuss the spreadsheet application
Post Reply
alienrobotghost
Posts: 16
Joined: Thu Jun 25, 2020 10:01 am

[Solved] Remove leading apostrophe from cells

Post by alienrobotghost »

See attached:

 Edit: Changed subject, was Removing single characters from cells 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Attachments
task.png
task.png (43.3 KiB) Viewed 2474 times
Last edited by MrProgrammer on Sat Dec 24, 2022 5:42 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
openoffice 4.1.1 on windows 7
User avatar
robleyd
Moderator
Posts: 5526
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Removing single characters from cells

Post by robleyd »

It would seem you may have imported a csv file using incorrect settings in the Text Import dialog, specifically Detect special numbers. If so, you could try importing the data again with correct settings.

Otherwise, Text to Columns should help you convert to numbers.
Slackware 15 (current) 64 bit
Apache OpenOffice.1.16
LibreOffice 26.8.0.3; SlackBuild for 26.8.0 by Eric Hameleers
-----------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
User avatar
Lupp
Volunteer
Posts: 3761
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Removing single characters from cells

Post by Lupp »

This is not a case for removing a character.

The apostrophe that is displayed while editing the cell is not really in it at all.
There are probably hundreds of threads in forums and Q&A sites dealing with the strange apostrophe.
This questioner will also find them using the appropriate search word.

What we should learn anyway;
(Usage of www.DeepL.com/Translator below)
If a programmer just casually invents a nimble Q&D solution to a current "little problem", it can cause a waste of countless hours by countless people over decades.
Translated from German with the help of www.DeepL.com/Translator (free version)

In fact I am thinking of global politics (entangled with "economy") which I see as a kind of "programming the world's future".
Our supposed solutions, not always quick, but mostly dirty, may even kill us.
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
MrProgrammer
Moderator
Posts: 5468
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Remove leading apostrophe from cells

Post by MrProgrammer »

alienrobotghost wrote: Fri Dec 16, 2022 12:17 pm Every value in this column
Read [Tutorial] Text to Columns, especially these discussions:
• Q02. How do I use Text to Columns to remove the initial apostrophe in cells?    ← Fixes the problem after discovering it
• Q41. Should I use the Detect Special Numbers option?    ← Prevents the problem in the first place so you don't need to fix it later

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Post Reply