<!DOCTYPE html> <html lang="en-US"> <head> <base href="../../../../"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Importing and Exporting Text Files</title> <link rel="shortcut icon" href="media/navigation/favicon.ico"> <link type="text/css" href="normalize.css" rel="Stylesheet"> <link type="text/css" href="default.css" rel="Stylesheet"> <link type="text/css" href="prism.css" rel="Stylesheet"> <script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="fuzzysort.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="en-US/langnames.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1"> </head> <body itemscope="true" itemtype="http://schema.org/TechArticle"> <div class="header-extrawurst"> <header><div class="logo-container"><a class="logo" href="en-US/text/shared/05/new_help.html"><div class="symbol"></div> <p>LibreOffice 6.4 Help</p></a></div></header><div class="modules"> <button type="button" data-a11y-toggle="modules-nav" id="modules" onclick="setupModules('', 'en-US');">Module</button><nav id="modules-nav"></nav> </div> </div> <aside class="rightside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1">Contents</label><div id="Contents" class="contents-treeview"></div></aside><aside class="leftside"><div id="Index"> <div class="index-label">Index 🔎︎ </div> <div id="Bookmarks"> <input id="search-bar" type="text" class="search" placeholder="Search in chosen module"><nav class="index"></nav> </div> </div></aside><div id="DisplayArea" itemprop="articleBody"> <a name="bm_id3153726"></a><meta itemprop="keywords" content="csv files,formulas"> <meta itemprop="keywords" content="formulas, importing/exporting as csv files"> <meta itemprop="keywords" content="exporting,formulas as csv files"> <meta itemprop="keywords" content="importing,csv files with formulas"> <h1 itemprop="articleSection" id="hd_id3153726"> <a name="csv_formula"></a>Importing and Exporting CSV Text Files with Formulas </h1> <p id="par_id3149402" class="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.</p> <h2 itemprop="articleSection" id="hd_id3150715">To Import a CSV File</h2> <ol> <li> <p id="par_id3153709" class="listitem">Choose <span class="emph">File - Open</span>.</p> </li> <li> <p id="par_id3155445" class="listitem">In the <span class="emph">File type</span> field, select the format "Text CSV". Select the file and click <span class="emph">Open</span>. When a file has the .csv extension, the file type is automatically recognized.</p> </li> <li> <p id="par_id3149565" class="listitem">You will see the <span class="menuitem">Text Import</span> dialog. Click <span class="menuitem">OK</span>.</p> </li> </ol> <div class="tip"> <div class="noteicon"><img src="media/icon-themes/res/helpimg/tip.svg" alt="Tip Icon " title="Tip Icon " style="width:40px;height:40px;"></div> <div class="notetext"><p>If the csv file contains formulas, but you want to import the results of those formulas, then choose <span id="swlnsysidm31" class="switchinline"><span hidden="true" id="MACidm32" class="MAC"><span class="emph">LibreOffice - Preferences</span></span><span hidden="true" id="defaultidm34"><span class="emph">Tools - Options</span></span></span><span class="emph"> - LibreOffice Calc - View</span> and clear the <span class="emph">Formulas</span> check box.</p></div> </div> <br> <h2 itemprop="articleSection" id="hd_id3154022">To Export Formulas and Values as CSV Files</h2> <ol> <li> <p id="par_id3150342" class="listitem">Click the sheet to be written as a csv file.</p> </li> <li> <p id="par_id3166423" class="listitem">If you want to export the formulas as formulas, for example, in the form =SUM(A1:B5), proceed as follows:</p> <p id="par_id3155111" class="listitem">Choose <span id="swlnsysidm45" class="switchinline"><span hidden="true" id="MACidm46" class="MAC"><span class="emph">LibreOffice - Preferences</span></span><span hidden="true" id="defaultidm48"><span class="emph">Tools - Options</span></span></span><span class="emph"> - LibreOffice Calc - View</span>.</p> <p id="par_id3150200" class="listitem">Under <span class="emph">Display</span>, mark the <span class="emph">Formulas</span> check box. Click <span class="emph">OK</span>.</p> <p id="par_id3154484" class="listitem">If you want to export the calculation results instead of the formulas, do not mark <span class="emph">Formulas</span>.</p> </li> <li> <p id="par_id3148702" class="listitem">Choose <span class="emph">File - Save as</span>. You will see the <span class="emph">Save as</span> dialog.</p> </li> <li> <p id="par_id3153912" class="listitem">In the <span class="menuitem">File type</span> field select the format "Text CSV".</p> </li> <li> <p id="par_id3157978" class="listitem">Enter a name and click <span class="emph">Save</span>.</p> </li> <li> <p id="par_id3152869" class="listitem">From the <span class="emph">Export of text files</span> dialog that appears, select the character set and the field and text delimiters for the data to be exported, and confirm with <span class="emph">OK</span>.</p> </li> <li> <p id="par_id3150050" class="listitem">If necessary, after you have saved, clear the <span class="emph">Formulas</span> check box to see the calculated results in the table again.</p> </li> </ol> <a name="relatedtopics"></a><div class="relatedtopics"> <p class="related" itemprop="mentions"><a name="related"></a><span class="emph">Related Topics</span> </p> <div class="relatedbody" itemprop="mentions"> <div class="embedded"><p class="embedded"><a name="csv_files"></a><a target="_top" href="en-US/text/scalc/guide/csv_files.html">Opening and Saving Text CSV Files</a> </p></div> <p id="par_id3153487" class="paragraph"><span id="swlnsysidm77" class="switchinline"><span hidden="true" id="MACidm78" class="MAC">LibreOffice - Preferences</span><span hidden="true" id="defaultidm79">Tools - Options</span></span> - <a target="_top" href="en-US/text/shared/optionen/01060100.html">LibreOffice Calc - View</a></p> <p id="par_id3153008" class="paragraph"><a target="_top" href="en-US/text/shared/00/00000207.html">Export text files</a></p> <p id="par_id3155595" class="paragraph"><a target="_top" href="en-US/text/shared/00/00000208.html">Import text files</a></p> </div> </div> </div> <div class="search-frame"></div> <div class="donation-frame"></div> <footer><div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p>This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/scalc/guide/csv_formula.xhp" target="_blank">/text/scalc/guide/csv_formula.xhp</a></p> <p>Title is: Importing and Exporting Text Files</p> <p id="bm_module"></p> <p id="bm_system"></p> <p id="bm_HID"></p> </div></footer> </body> </html>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
address_auto.html | File | 6.34 KB | 0644 |
|
auto_off.html | File | 6.82 KB | 0644 |
|
autofilter.html | File | 6.93 KB | 0644 |
|
autoformat.html | File | 5.89 KB | 0644 |
|
background.html | File | 5.48 KB | 0644 |
|
borders.html | File | 13.91 KB | 0644 |
|
calc_date.html | File | 5.68 KB | 0644 |
|
calc_series.html | File | 7.9 KB | 0644 |
|
calc_timevalues.html | File | 3.88 KB | 0644 |
|
calculate.html | File | 4.83 KB | 0644 |
|
cell_enter.html | File | 5.78 KB | 0644 |
|
cell_protect.html | File | 8.4 KB | 0644 |
|
cell_unprotect.html | File | 4.05 KB | 0644 |
|
cellcopy.html | File | 6 KB | 0644 |
|
cellreference_dragdrop.html | File | 5.55 KB | 0644 |
|
cellreferences.html | File | 7.89 KB | 0644 |
|
cellreferences_url.html | File | 5.8 KB | 0644 |
|
cellstyle_by_formula.html | File | 5.69 KB | 0644 |
|
cellstyle_conditional.html | File | 11.13 KB | 0644 |
|
cellstyle_minusvalue.html | File | 4.84 KB | 0644 |
|
consolidate.html | File | 7.86 KB | 0644 |
|
csv_files.html | File | 8.52 KB | 0644 |
|
csv_formula.html | File | 7.83 KB | 0644 |
|
currency_format.html | File | 6.4 KB | 0644 |
|
database_define.html | File | 5.14 KB | 0644 |
|
database_filter.html | File | 6.94 KB | 0644 |
|
database_sort.html | File | 4.46 KB | 0644 |
|
datapilot.html | File | 4.93 KB | 0644 |
|
datapilot_createtable.html | File | 7.93 KB | 0644 |
|
datapilot_deletetable.html | File | 5 KB | 0644 |
|
datapilot_edittable.html | File | 6.43 KB | 0644 |
|
datapilot_filtertable.html | File | 7.52 KB | 0644 |
|
datapilot_grouping.html | File | 5.42 KB | 0644 |
|
datapilot_tipps.html | File | 5.58 KB | 0644 |
|
datapilot_updatetable.html | File | 4.96 KB | 0644 |
|
dbase_files.html | File | 7.72 KB | 0644 |
|
design.html | File | 6 KB | 0644 |
|
edit_multitables.html | File | 4.92 KB | 0644 |
|
filters.html | File | 5.96 KB | 0644 |
|
finding.html | File | 7.59 KB | 0644 |
|
format_table.html | File | 6.51 KB | 0644 |
|
format_value.html | File | 6.08 KB | 0644 |
|
format_value_userdef.html | File | 7.56 KB | 0644 |
|
formula_copy.html | File | 5.33 KB | 0644 |
|
formula_enter.html | File | 6.79 KB | 0644 |
|
formula_value.html | File | 4.36 KB | 0644 |
|
formulas.html | File | 6.45 KB | 0644 |
|
fraction_enter.html | File | 4.39 KB | 0644 |
|
goalseek.html | File | 6.14 KB | 0644 |
|
html_doc.html | File | 5.91 KB | 0644 |
|
integer_leading_zero.html | File | 6.08 KB | 0644 |
|
keyboard.html | File | 7.85 KB | 0644 |
|
line_fix.html | File | 5.72 KB | 0644 |
|
main.html | File | 22.58 KB | 0644 |
|
mark_cells.html | File | 6.82 KB | 0644 |
|
matrixformula.html | File | 4.72 KB | 0644 |
|
move_dragdrop.html | File | 9.4 KB | 0644 |
|
multi_tables.html | File | 4.51 KB | 0644 |
|
multioperation.html | File | 9.26 KB | 0644 |
|
multitables.html | File | 5.97 KB | 0644 |
|
note_insert.html | File | 5.34 KB | 0644 |
|
numbers_text.html | File | 9.54 KB | 0644 |
|
pivotchart.html | File | 4.91 KB | 0644 |
|
pivotchart_create.html | File | 5.76 KB | 0644 |
|
pivotchart_delete.html | File | 4.77 KB | 0644 |
|
pivotchart_edit.html | File | 7.79 KB | 0644 |
|
pivotchart_filter.html | File | 5.41 KB | 0644 |
|
pivotchart_update.html | File | 4.56 KB | 0644 |
|
print_details.html | File | 5.24 KB | 0644 |
|
print_exact.html | File | 4.84 KB | 0644 |
|
print_landscape.html | File | 6.95 KB | 0644 |
|
print_title_row.html | File | 6.4 KB | 0644 |
|
printranges.html | File | 7.71 KB | 0644 |
|
relativ_absolut_ref.html | File | 7.76 KB | 0644 |
|
rename_table.html | File | 7.49 KB | 0644 |
|
rounding_numbers.html | File | 5.81 KB | 0644 |
|
row_height.html | File | 5.25 KB | 0644 |
|
scenario.html | File | 6.81 KB | 0644 |
|
sorted_list.html | File | 5.1 KB | 0644 |
|
specialfilter.html | File | 11.25 KB | 0644 |
|
super_subscript.html | File | 4.19 KB | 0644 |
|
table_cellmerge.html | File | 4.88 KB | 0644 |
|
table_rotate.html | File | 4.28 KB | 0644 |
|
table_view.html | File | 4.65 KB | 0644 |
|
text_numbers.html | File | 5.23 KB | 0644 |
|
text_rotate.html | File | 4.05 KB | 0644 |
|
text_wrap.html | File | 4.12 KB | 0644 |
|
userdefined_function.html | File | 8.33 KB | 0644 |
|
validity.html | File | 7.79 KB | 0644 |
|
value_with_name.html | File | 7.99 KB | 0644 |
|
webquery.html | File | 7.11 KB | 0644 |
|
year2000.html | File | 4.12 KB | 0644 |
|