summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/scalc/guide/csv_formula.xhp
blob: b5816030b22968de3198eafa87dad4bf18a1b781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://www.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc..
 *
 *  Copyright: 2000 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************-->
	
<helpdocument version="1.0">
<meta>
<topic id="textscalcguidecsv_formulaxml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Importing and Exporting Text Files</title>
<filename>/text/scalc/guide/csv_formula.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
<lastedited date="2004-08-20T12:07:52">converted from old format - fpe</lastedited>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3153726"><bookmark_value>csv files; spreadsheets</bookmark_value>
<bookmark_value>formulas; saving as csv files</bookmark_value>
<bookmark_value>exporting; tables as text</bookmark_value>
<bookmark_value>importing; tables as text</bookmark_value>
<bookmark_value>tables; exporting as text</bookmark_value>
<bookmark_value>tables; importing as text</bookmark_value>
<bookmark_value>text; importing to spreadsheets</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3153726" xml-lang="en-US" level="1" l10n="U" oldref="1"><variable id="csv_formula"><link href="text/scalc/guide/csv_formula.xhp" name="Importing and Exporting Text Files">Importing and Exporting Text Files</link>
</variable></paragraph>
<paragraph role="paragraph" id="par_id3149402" xml-lang="en-US" l10n="U" oldref="2">Comma separated values (CSV) files are text files that contain the cell contents of a single sheet. Commas, semicolons, or other characters can be used as the field delimiters between the cells. Text strings are put in quotation marks, numbers are written without quotation marks.</paragraph>
<paragraph role="heading" id="hd_id3150715" xml-lang="en-US" level="2" l10n="U" oldref="15">Importing a CSV File</paragraph>
<list type="ordered">
<listitem>
<paragraph role="listitem" id="par_id3153709" xml-lang="en-US" l10n="U" oldref="16">Choose <emph>File - Open</emph>.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3155445" xml-lang="en-US" l10n="U" oldref="17">In the <emph>Save as type</emph> field, select the format "Text CSV". Select the file and click <emph>Open</emph>. When a file has the .csv extension, the file type is automatically recognized.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3149565" xml-lang="en-US" l10n="U" oldref="18">You will see the <emph>Import text files</emph> dialog. Click OK.</paragraph>
</listitem>
</list>
<paragraph role="tip" id="par_id3149255" xml-lang="en-US" l10n="CHG" oldref="19">If the csv file contains formulas, but you want to import the results of those formulas, then choose <emph>Tools - Options - %PRODUCTNAME Calc - View</emph> and clear the <emph>Formulas</emph> check box.</paragraph>
<paragraph role="heading" id="hd_id3154022" xml-lang="en-US" level="2" l10n="U" oldref="3">Exporting Formulas and Values as CSV Files</paragraph>
<list type="ordered">
<listitem>
<paragraph role="listitem" id="par_id3150342" xml-lang="en-US" l10n="U" oldref="4">Click the sheet to be written as a csv file.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3166423" xml-lang="en-US" l10n="U" oldref="5">If you want to export the formulas as formulas, for example, in the form =SUM(A1:B5), proceed as follows:</paragraph>
<paragraph role="listitem" id="par_id3155111" xml-lang="en-US" l10n="U" oldref="6">Choose <emph>Tools - Options - %PRODUCTNAME Calc - View</emph>.</paragraph>
<paragraph role="listitem" id="par_id3150200" xml-lang="en-US" l10n="U" oldref="7">Under <emph>Display</emph>, mark the <emph>Formulas</emph> check box. Click OK.</paragraph>
<paragraph role="listitem" id="par_id3154484" xml-lang="en-US" l10n="U" oldref="8">If you want to export the calculation results instead of the formulas, do not mark <emph>Formulas</emph>.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3148702" xml-lang="en-US" l10n="U" oldref="9">Choose <emph>File - Save as</emph>. You will see the <emph>Save as</emph> dialog.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3153912" xml-lang="en-US" l10n="U" oldref="10">In the<emph> File type</emph> field select the format "Text CSV".</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3157978" xml-lang="en-US" l10n="U" oldref="13">Enter a name and click <emph>Save</emph>.</paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3152869" xml-lang="en-US" l10n="U" oldref="23">From the <emph>Export of text files</emph> dialog that appears, select the character set and the field and text delimiters for the data to be exported, and confirm with OK.</paragraph>
<paragraph role="listitem" id="par_id3146781" xml-lang="en-US" l10n="U" oldref="12">Caution: If the numbers use commas as decimal separators or thousands separators, do not select the comma as the field delimiter. If the text contains double quotation marks, you must select the single quotation mark as separator.<comment>not possible to have a table here because that would break the numbering in XML.</comment></paragraph>
</listitem>
<listitem>
<paragraph role="listitem" id="par_id3150050" xml-lang="en-US" l10n="U" oldref="14">If necessary, after you have saved, clear the <emph>Formulas</emph> check box to see the calculated results in the table again.</paragraph>
</listitem>
</list>
<embed href="text/shared/00/00000004.xhp#related"/>
<paragraph role="paragraph" id="par_id3153487" xml-lang="en-US" l10n="U" oldref="20"><link href="text/shared/optionen/01060100.xhp" name="Tools - Options - Spreadsheet - View">Tools - Options - %PRODUCTNAME Calc - View</link></paragraph>
<paragraph role="paragraph" id="par_id3153008" xml-lang="en-US" l10n="U" oldref="21"><link href="text/shared/00/00000207.xhp" name="Export text files">Export text files</link></paragraph>
<paragraph role="paragraph" id="par_id3155595" xml-lang="en-US" l10n="U" oldref="22"><link href="text/shared/00/00000208.xhp" name="Import text files">Import text files</link></paragraph>
</body>
</helpdocument>