LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-09-2006, 12:07 AM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Pittsburgh
Distribution: Ubuntu
Posts: 378

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, 08: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: 331Reputation: 331Reputation: 331Reputation: 331
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 08:56 AM.
 
Old 01-10-2006, 08:55 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 08:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration