LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2010, 04:45 PM   #1
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,137

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Setting data types in OpenOffice Calc


Suppose you are using Calc to hold data, and you have a column of surnames. You enter True and it turns into TRUE: OO has decided you wanted a Boolean. Similarly, you enter a date as 12 Jan 09: it may appear in that format, but you can't search for Jan 09, only for 01/09.

Is there any way one can set the data type of a cell as text, or prevent OO from carrying out unwanted type conversions?

I suspect the answer will be no; I can't find anything in the help pages, and I suspect the developers would say I should be using Base. Well, I don't want to use Base: I want my data displayed spread-sheet style

There is a solution: to insert non-breaking spaces in dates and after words like "true", but it would be nice if the problem could be fixed just once.
 
Old 03-03-2010, 05:03 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Select the cells concerned and use the Format > Cells > Numbers tab
In the category change it to text
Works for both problems
You won't find Jan 09 if the cell contains 12 Jan 09 unless you use regular expressions.

Last edited by smoker; 03-03-2010 at 05:08 PM.
 
Old 03-04-2010, 05:08 PM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,137

Original Poster
Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Are we talking about the same program? The solution suggested makes the following transformations:
1 Feb 10 → 40210
True → 1

Obviously, OOO doesn't think I should be using Calc as a database! I'm sure I never had that sort of problem with Lotus123.
 
Old 03-04-2010, 06:05 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
If it is only text, precede your text with ' (single quote) or " (double quote) and text will remain text. Right or left justified.

jlinkels
 
Old 03-04-2010, 06:40 PM   #5
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Have a look at this :
http://files.headru.sh/images/calc.jpg

Of course the entry will change if it was entered under a different format.
Change the format first !
 
Old 03-04-2010, 10:42 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by DavidMcCann View Post
Is there any way one can ... prevent OO from carrying out unwanted type conversions?
Try Tools->"Cell Contents" and clearing AutoInput.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I label chart data in OpenOffice calc? newbiesforever Linux - Software 5 10-11-2009 01:21 PM
logic in openoffice calc edgjerp Linux - Software 2 05-14-2006 08:13 AM
PHP: export data to openoffice calc lucesei Programming 3 12-11-2005 12:28 AM
Openoffice calc dajomu Linux - Software 1 10-27-2005 05:56 PM
data import into openoffice calc general4172 Linux - Software 0 09-24-2003 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration