LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-08-2006, 11:07 PM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
split pasted data in openoffice spreadsheet?


Hi,

I remember, somehow, in Microsoft Excel, if I pasted something like a list:
Code:
1a-1b-1c
2a-2b-2c
3a-3b-3c
I could tell Excel to split my data by the hyphen, and it would place 1a 2a and 3a all in column A, and place 1b 2b and 3b all in column B .......

but I can't figure out how to do this in openoffice, can anyone help me out?

Thanks!
George
 
Old 01-10-2006, 07:53 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I just got this from the OOo online help. Start with step two since you already have a text file.

If you want to exchange data with a database that does not have an ODBC link and does not allow dBase import and export, you can use a common text format.
Importing Data Into OpenOffice.org
To exchange data in a text format use the OpenOffice.org Calc import/export filter.
1.Export the desired data from the source database in a text format. The CSV text format is recommended. This format separates data fields by using delimiters such as commas or semi-colons, and separates records by inserting line breaks.
2.Choose File - Open and select "Text CSV" from the File type combo box. Select the file and click Open.
3.The Text Import dialog appears. Decide which data to include from the text document.
Once the data is in a OpenOffice.org Calc spreadsheet, you can edit it as needed. Save the data as a OpenOffice.org data source:
Save the current OpenOffice.org Calc spreadsheet in dBase format in the folder of a dBase database. To do this, choose File - Save As, then select the File type "dBase" and the folder of the dBase database.
Exporting in CSV Text Format
You can export the current OpenOffice.org spreadsheet in a text format which can be read by many other applications.
1.Choose File - Save as.
2.In File type select the filter "Text CSV". Enter a file name and click Save.
3.This opens the Export of text files dialog, in which you can select the character set, field delimiter and text delimiter. Click OK. A warning informs you that only the active sheet was saved.

Last edited by stress_junkie; 01-10-2006 at 07:56 AM.
 
Old 01-10-2006, 07:55 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
You can copy the dataset and insert it with 'Paste Special' -> 'Unformated text'. In the next dialog you'll be asked which separator to use.
 
  


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
Perl: Binary data to be split into ints, shorts and floats ppanyam Programming 1 12-08-2005 05:27 PM
Want to split a partition without data loss. Ebel Linux - Hardware 1 08-09-2004 11:56 PM
openoffice spreadsheet questions: disable autocomplete, soft line-break and bugreport codec Linux - Software 0 04-28-2004 05:10 PM
Saving partial spreadsheet data as html wyld Linux - Software 1 09-21-2003 09:13 AM
openoffice spreadsheet and image keevitaja Linux - Software 1 11-21-2002 03:08 AM

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

All times are GMT -5. The time now is 05:16 PM.

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