86 lines
6.5 KiB
XML
86 lines
6.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<helpdocument version="1.0">
|
|
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
|
|
-->
|
|
|
|
|
|
<meta>
|
|
<topic id="textscalcguidecsv_formulaxml" indexer="include">
|
|
<title xml-lang="en-US" id="tit">Importing and Exporting Text Files</title>
|
|
<filename>/text/scalc/guide/csv_formula.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id3153726"><bookmark_value>csv files;formulas</bookmark_value>
|
|
<bookmark_value>formulas; importing/exporting as csv files</bookmark_value>
|
|
<bookmark_value>exporting;formulas as csv files</bookmark_value>
|
|
<bookmark_value>importing;csv files with formulas</bookmark_value>
|
|
</bookmark><comment>mw deleted "inserting;", copied 4 index entries to scalc/guide/csv_files.xhp, changed "csv files;" and "formulas;" and added 2 index entries</comment>
|
|
<paragraph xml-lang="en-US" id="hd_id3153726" role="heading" level="1"><variable id="csv_formula"><link href="text/scalc/guide/csv_formula.xhp">Importing and Exporting CSV Text Files with Formulas</link>
|
|
</variable></paragraph>
|
|
<paragraph xml-lang="en-US" id="par_id3149402" role="paragraph">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>
|
|
<h2 id="hd_id3150715">To Import a CSV File</h2>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3153709" role="listitem">Choose <emph>File - Open</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3155445" role="listitem">In the <emph>File 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 xml-lang="en-US" id="par_id3149565" role="listitem">You will see the <item type="menuitem">Text Import</item> dialog. Click <item type="menuitem">OK</item>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph xml-lang="en-US" id="par_id3149255" role="tip">If the csv file contains formulas, but you want to import the results of those formulas, then choose <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME Calc - View</emph> and clear the <emph>Formulas</emph> check box.</paragraph>
|
|
<h2 id="hd_id3154022">To Export Formulas and Values as CSV Files</h2>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3150342" role="listitem">Click the sheet to be written as a csv file.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3166423" role="listitem">If you want to export the formulas as formulas, for example, in the form =SUM(A1:B5), proceed as follows:</paragraph>
|
|
<paragraph xml-lang="en-US" id="par_id3155111" role="listitem">Choose <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - %PRODUCTNAME Calc - View</emph>.</paragraph>
|
|
<paragraph xml-lang="en-US" id="par_id3150200" role="listitem">Under <emph>Display</emph>, mark the <emph>Formulas</emph> check box. Click <emph>OK</emph>.</paragraph>
|
|
<paragraph xml-lang="en-US" id="par_id3154484" role="listitem">If you want to export the calculation results instead of the formulas, do not mark <emph>Formulas</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3148702" role="listitem">Choose <emph>File - Save as</emph>. You will see the <emph>Save as</emph> dialog.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3153912" role="listitem">In the
|
|
<item type="menuitem">File type</item> field select the format "Text CSV".</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3157978" role="listitem">Enter a name and click <emph>Save</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3152869" role="listitem">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 <emph>OK</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_id3150050" role="listitem">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>
|
|
<section id="relatedtopics">
|
|
<embed href="text/scalc/guide/csv_files.xhp#csv_files"/>
|
|
<paragraph xml-lang="en-US" id="par_id3153487" role="paragraph"><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - <link href="text/shared/optionen/01060100.xhp">%PRODUCTNAME Calc - View</link></paragraph>
|
|
<paragraph xml-lang="en-US" id="par_id3153008" role="paragraph"><link href="text/shared/00/00000207.xhp">Export text files</link></paragraph>
|
|
<paragraph xml-lang="en-US" id="par_id3155595" role="paragraph"><link href="text/shared/00/00000208.xhp">Import text files</link></paragraph>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|