There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Business Applications
Tag Cloud
audio blue blue screen boot bsod compaq computer cpu crash dell drivers dvd error excel firefox format freeze freezing hard drive install internet internet explorer kb951748 lan laptop loss of internet malware memory motherboard network networking outlook outlook 2007 problem restart screen security slow sound startup trojan update virus vista windows windows xp winxp wireless zone alarm zonealarm
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Business Applications >
OpenOffice Calc - how to stop it changing numbers to dates?


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
cloudburst7's Avatar
Junior Member with 27 posts.
 
Join Date: Aug 2008
Experience: Intermediate
03-Oct-2008, 05:38 PM #1
OpenOffice Calc - how to stop it changing numbers to dates?
I have a table in which the first column is numbers. Sometimes there is a range eg 3-4 in which Calc auto changes it to a date eg 3-4 becomes 03/04/08

I've tried rummaging through its menus but can't find the solution. Changing the date format for a particular cell makes that cell look ok, but I'd have to do that for individual cells becuase copying it to the whole column spoils those cells which contain a single digit, not a range.

I'm sure there's an obvious solution, but right now I can't find it. Any help will be much appreciated!



Edited to add:

Changing the cell format to text, or All, to avoid it being read as a number, does somethign even stranger, eg 4-5 is changed to 39572

Last edited by cloudburst7 : 03-Oct-2008 05:48 PM. Reason: To add more info
RootbeaR's Avatar
Computer Specs
Distinguished Member with 2,102 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
03-Oct-2008, 06:45 PM #2
Quote:
Originally Posted by cloudburst7 View Post
I have a table in which the first column is numbers. Sometimes there is a range eg 3-4 in which Calc auto changes it to a date eg 3-4 becomes 03/04/08

I've tried rummaging through its menus but can't find the solution. Changing the date format for a particular cell makes that cell look ok, but I'd have to do that for individual cells becuase copying it to the whole column spoils those cells which contain a single digit, not a range.

I'm sure there's an obvious solution, but right now I can't find it. Any help will be much appreciated!



Edited to add:

Changing the cell format to text, or All, to avoid it being read as a number, does somethign even stranger, eg 4-5 is changed to 39572
Use an apostrophe before the number.
eg. * '4-5 * instead of * 4-5 *
cloudburst7's Avatar
Junior Member with 27 posts.
 
Join Date: Aug 2008
Experience: Intermediate
04-Oct-2008, 04:43 AM #3
Thank you - that will help when inputting more data or creating new tables in the future.

However I've got a full table worth of data already - is there a quick way to put an apostrophe before all the numbers then? Or must I go through the table manually changing all the affected cells?
RootbeaR's Avatar
Computer Specs
Distinguished Member with 2,102 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
04-Oct-2008, 08:41 PM #4
Quote:
Originally Posted by cloudburst7 View Post
Thank you - that will help when inputting more data or creating new tables in the future.

However I've got a full table worth of data already - is there a quick way to put an apostrophe before all the numbers then? Or must I go through the table manually changing all the affected cells?
That I don't know.
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 3,549 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
04-Oct-2008, 09:56 PM #5
If you have Excel, and the ASAP Utilities add-in, there is. Do you have Excel to do this? You could post it up here and someone could do it for you, I'm sure. Wouldn't take very long at all.
slurpee55's Avatar
Computer Specs
Distinguished Member with 4,517 posts.
 
Join Date: Oct 2004
Location: Southwest Iowa....
Experience: Currently stupid...
04-Oct-2008, 10:14 PM #6
Excel does the same thing - it thinks 3-4 is a date, and both programs hold dates as a # of days since 1/1/1900 (I think that is the base date) so that is what the 4-5 becoming 39572 means.
The following directions really are based on Excel, but I am sure they will work in Calc, although the specific commands may be a little different.
For a workaround, first format your cells that are showing the date as Format, Cells, Special. In the bar at the top, enter "m-d;@" without the "" around it.
Your text will now appear as 3-4. However, Calc still thinks it is a date, so you might prefer to go one more step. Copy all that data, open up notepad and paste it in. Notepad sees everything as text, so that is now the way it is formatted. In Calc, format your column (or another if you prefer to be able to compare the results) as text, by highlighting it and using Format Cells, Text.
Copy or cut all the data from Notepad and paste it into the text-formatted column in Calc.
__________________
Iowa? I could have sworn this was heaven.
Well, I think I can answer this question most successfully in mime.

My theme song...
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:40 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.