| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/shared/00/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Text Import</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.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="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>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for all modules" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<a name="bm_id3148919"></a>
<a name="bm_id3148919"></a>
<h1 id="hd_id3150960" dir="auto">
<a name="TextImporth1"></a>Text Import</h1>
<p id="par_id3149987" class="paragraph" dir="auto"><span class="avis">Sets the import options for delimited data.</span></p>
<a name="howtoget"></a><div class="howtoget">
<div><p class="howtogetheader" dir="auto"><a name="wie"></a>To access this command...</p></div>
<div class="howtogetbody">
<div class="embedded">
<a name="textimport"></a>
<p id="par_id3145827" class="paragraph" dir="auto">Choose <span class="menuitem">File - Open - File type</span>, select <span class="emph">Text CSV</span>.</p>
<p id="par_id6071352" class="paragraph" dir="auto">Choose <span class="menuitem">Data - Text to Columns</span> (Calc).</p>
<p id="par_id161656944575459" class="paragraph" dir="auto">Copy data to clipboard, then choose <span class="menuitem">Edit - Paste Special - Paste Special</span> (Calc).</p>
</div>
</div>
</div>
<br>
<h2 id="hd_id3147588" dir="auto">Import</h2>
<a name="bm_id3155934"></a>
<h3 id="hd_id3154788" dir="auto">Character Set</h3>
<p id="par_id3149495" class="paragraph" dir="auto"><span class="avis">Specifies the character set to be used in the imported file.</span></p>
<a name="bm_id315593499"></a>
<h3 id="hd_id315478899" dir="auto">Language</h3>
<p id="par_id314949588" class="paragraph" dir="auto"><span class="avis">Determines how the number strings are imported.</span></p>
<p id="par_id314949587" class="paragraph" dir="auto">If Language is set to Default (for CSV import) or Automatic (for HTML import), Calc will use the globally set language. If Language is set to a specific language, that language will be used when importing numbers.</p>
<p id="par_id314949586" class="paragraph" dir="auto">When importing an HTML document, the Language selection can conflict with the global HTML option <a target="_top" href="en-US/text/shared/optionen/01030500.html">Use 'English (USA)' locale for numbers</a>. The global HTML option is effective only when the Automatic language option is selected. If you select a specific language in the HTML Import Options dialog, the global HTML option is ignored.</p>
<a name="bm_id3153377"></a>
<h3 id="hd_id3154894" dir="auto">From Row</h3>
<p id="par_id3150247" class="paragraph" dir="auto"><span class="avis">Specifies the row where you want to start the import.</span> The rows are visible in the preview window at the bottom of the dialog.</p>
<h2 id="hd_id3149999" dir="auto">Separator Options</h2>
<p id="par_id3149640" class="paragraph" dir="auto">Specifies whether your data uses separators or fixed widths as delimiters.</p>
<a name="bm_id3153894"></a>
<h3 id="hd_id3156553" dir="auto">Fixed width</h3>
<p id="par_id3150710" class="paragraph" dir="auto"><span class="avis">Separates fixed-width data (equal number of characters) into columns.</span> Click on the ruler in the preview window to set the width.</p>
<a name="bm_id3147043"></a>
<h3 id="hd_id3156560" dir="auto">Separated by</h3>
<p id="par_id3145136" class="paragraph" dir="auto"><span class="avis">Select the separator used in your data.</span></p>
<a name="bm_id3153345"></a>
<h3 id="hd_id3147250" dir="auto">Tab</h3>
<p id="par_id3147576" class="paragraph" dir="auto"><span class="avis">Separates data delimited by tabs into columns.</span></p>
<a name="bm_id3157959"></a>
<h3 id="hd_id3154317" dir="auto">Semicolon</h3>
<p id="par_id3157863" class="paragraph" dir="auto"><span class="avis">Separates data delimited by semicolons into columns.</span></p>
<a name="bm_id3147089"></a>
<h3 id="hd_id3145313" dir="auto">Comma</h3>
<p id="par_id3150693" class="paragraph" dir="auto"><span class="avis">Separates data delimited by commas into columns.</span></p>
<a name="bm_id3109848"></a>
<h3 id="hd_id3163802" dir="auto">Space</h3>
<p id="par_id3153663" class="paragraph" dir="auto"><span class="avis">Separates data delimited by spaces into columns.</span></p>
<a name="bm_id3149098"></a>
<a name="bm_id3149801"></a>
<h3 id="hd_id3147335" dir="auto">Other</h3>
<p id="par_id3156329" class="paragraph" dir="auto"><span class="avis">Separates data into columns using the custom separator that you specify. Note: The custom separator must also be contained in your data.</span></p>
<a name="bm_id3146807"></a>
<h3 id="hd_id3150978" dir="auto">Merge delimiters</h3>
<p id="par_id3153827" class="paragraph" dir="auto"><span class="avis">Combines consecutive delimiters and removes blank data fields.</span></p>
<a name="bm_id3146808"></a>
<h3 id="hd_id3150979" dir="auto">Trim spaces</h3>
<p id="par_id3153828" class="paragraph" dir="auto"><span class="avis">Removes starting and trailing spaces from data fields.</span></p>
<a name="bm_id3147619"></a>
<h3 id="hd_id3155341" dir="auto">String delimiter</h3>
<p id="par_id3156326" class="paragraph" dir="auto"><span class="avis">Select a character to delimit text data. You can also enter a character in the text box.</span></p>
<h2 id="hd_id315538811" dir="auto">Other options</h2>
<p id="par_id315366511" class="paragraph" dir="auto">Sets some other import options.</p>
<a name="bm_id315790911"></a>
<h3 id="hd_id314847411" dir="auto">Format quoted field as text</h3>
<p id="par_id314995711" class="paragraph" dir="auto"><span class="avis">When this option is enabled, fields or cells whose values are quoted in their entirety (the first and last characters of the value equal the text delimiter) are imported as text.</span></p>
<a name="bm_id315790922"></a>
<h3 id="hd_id314847422" dir="auto">Detect special numbers</h3>
<p id="par_id314995722" class="paragraph" dir="auto"><span class="avis">When this option is enabled, Calc will automatically detect all number formats, including special number formats such as dates and time. Scientific notation will also be detected as <span class="emph">Detect scientific notation</span> option must be enabled at the same time.</span></p>
<p id="par_id314995723" class="paragraph" dir="auto">The selected language influences how such special numbers are detected, since different languages and regions many have different conventions for such special numbers.</p>
<p id="par_id314995724" class="paragraph" dir="auto">When this option is disabled, Calc will detect and convert only numbers in decimal notation. Detection of numbers in scientific notation will depend on <span class="emph">Detect scientific notation</span> option. The rest will be imported as text. A decimal number string can have digits 0-9, thousands separators, and a decimal separator. Thousands separators and decimal separators may vary with the selected language and region.</p>
<a name="bm_id315790921"></a>
<h3 id="hd_id314847423" dir="auto">Detect scientific notation</h3>
<p id="par_id314995721" class="paragraph" dir="auto"><span class="avis">When this option is enabled, Calc will automatically detect numbers with scientific notation, like 5E2 for 500.</span></p>
<p id="par_id314995726" class="paragraph" dir="auto">The selected language influences how scientific notation is detected, since different languages and regions many have different decimal separator.</p>
<p id="par_id314995727" class="paragraph" dir="auto">This option can be disabled only if <span class="emph">Detect special numbers</span> option is previously disabled.</p>
<p id="par_id314995728" class="paragraph" dir="auto">When this option is disabled, Calc will detect and convert only numbers in decimal notation. The rest will be imported as text. A decimal number string can have digits 0-9, thousands separators, and a decimal separator. Thousands separators and decimal separators may vary with the selected language and region.</p>
<a name="bm_id315790923"></a>
<h3 id="hd_id171220172142361711" dir="auto">Skip empty cells</h3>
<p id="par_id171220172144419125" class="paragraph" dir="auto"><span class="avis">Available when using <span class="menuitem">Paste Special</span>: when this option is enabled, Calc preserves previous content of cells when pasting empty ones. Otherwise, Calc deletes content of previous cells.</span></p>
<p id="par_id171220172156279613" class="paragraph" dir="auto">In <span class="emph">Text to Columns</span> conversion, if cell content begins with a separator and this option is disabled, then first column will be emptied.</p>
<h3 id="hd_id151656941561432" dir="auto">Evaluate formulas</h3>
<p id="par_id601656941717698" class="paragraph" dir="auto">Determines whether formula expressions starting with a = equal sign character are to be evaluated as formulas or imported as textual data. If checked evaluate formulas on input. Otherwise formulas are input as text.</p>
<h2 id="hd_id3155388" dir="auto">Fields</h2>
<p id="par_id3153665" class="paragraph" dir="auto">Shows how your data will look when it is separated into columns.</p>
<a name="bm_id3157909"></a>
<h3 id="hd_id3148474" dir="auto">Column type</h3>
<p id="par_id314995725" class="paragraph" dir="auto"><span class="avis">Choose a column in the preview window and select the data type to be applied the imported data.</span> You can select one of the following options:</p>
<table border="1" class="" cellpadding="0" cellspacing="0">
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id3152945" class="tableheadintable" dir="auto">Type</p>
</th>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id3145121" class="tableheadintable" dir="auto">Function</p>
</th>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3149763" class="tablecontentintable" dir="auto">Standard</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3155923" class="tablecontentintable" dir="auto">LibreOffice determines the type.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3152472" class="tablecontentintable" dir="auto">Text</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3148946" class="tablecontentintable" dir="auto">Imported data are treated as text.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3147265" class="tablecontentintable" dir="auto">Date (DMY)</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3156434" class="tablecontentintable" dir="auto">Applies a date format (Day, Month, Year) to the imported data in a column.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3148740" class="tablecontentintable" dir="auto">Date (MDY)</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3149688" class="tablecontentintable" dir="auto">Applies a date format (Month, Day, Year) to the imported data in a column.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3150230" class="tablecontentintable" dir="auto">Date (YMD)</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3153207" class="tablecontentintable" dir="auto">Applies a date format (Year, Month, Day) to the imported data in a column.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3148981" class="tablecontentintable" dir="auto">US English</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3153178" class="tablecontentintable" dir="auto">Numbers formatted in US English are searched for and included regardless of the system language. A number format is not applied. If there are no US English entries, the <span class="emph">Standard</span> format is applied.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3154329" class="tablecontentintable" dir="auto">Hide</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3154946" class="tablecontentintable" dir="auto">The data in the column are not imported.</p>
</td>
</tr>
</table>
<br>
<p id="par_id3149767" class="paragraph" dir="auto">If you selected one of the date formats (DMY), (MDY), or (YMD) and you enter numbers without date delimiters, the numbers are interpreted as follows:</p>
<table border="1" class="" cellpadding="0" cellspacing="0">
<tr>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id3150650" class="tableheadintable" dir="auto">Number of characters </p>
</th>
<th rowspan="" colspan="" class="tableheadcell" dir="auto">
<p id="par_id3150495" class="tableheadintable" dir="auto">Date format</p>
</th>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3156212" class="tablecontentintable" dir="auto">6</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3153056" class="tablecontentintable" dir="auto">Two characters each are taken for day, month, and year in the selected order.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3147352" class="tablecontentintable" dir="auto">8</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3153768" class="tablecontentintable" dir="auto">Four characters are taken for the year, two each for month and day, in the selected order.</p>
</td>
</tr>
<tr>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3147295" class="tablecontentintable" dir="auto">5 or 7</p>
</td>
<td rowspan="" colspan="" dir="auto">
<p id="par_id3151168" class="tablecontentintable" dir="auto">As with 6 or 8 characters, but the first part of the sequence has one character less. This will suppress a leading zero for month and day.</p>
</td>
</tr>
</table>
<br>
<div class="tip">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div>
<div class="notetext"><p id="par_id3153143" dir="auto">If you want to include the leading zero in the data you import, in telephone numbers for example, apply the "Text" format to the column.</p></div>
</div>
<br>
<a name="bm_id3157910"></a>
<h3 id="hd_id3149287" dir="auto">Preview</h3>
<p id="par_id3147377" class="paragraph" dir="auto"><span class="avis">Shows how the imported text will look after it is separated into columns. To apply a format to a column when it is imported, click a column and select a <span class="emph">Column type</span>. When you select a <span class="emph">Column type</span>, the column heading displays the applied format.</span></p>
<p id="par_id3150105" class="paragraph" dir="auto">If you want to use a fixed width to separate the imported data into columns, click in the ruler to set the width boundaries.</p>
<a name="relatedtopics"></a><div class="relatedtopics">
<p class="related" itemprop="mentions" dir="auto"><a name="related"></a><span class="emph">Related Topics</span>
</p>
<div class="relatedbody" itemprop="mentions">
<p id="par_id3155746" class="paragraph" dir="auto"><a target="_top" href="en-US/text/shared/guide/keyboard.html">Navigating Without the Mouse</a></p>
<p id="par_id3146120" class="paragraph" dir="auto"><a target="_top" href="en-US/text/shared/00/00000020.html">Information about Import and Export Filters</a>.</p>
<span id="swlnappltextshared0000000208xml_1" class="switch">
<span hidden="true" id="CALCtextshared0000000208xml_1" class="CALC">
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/guide/csv_files.html">Opening and Saving Text CSV Files</a>
</p></div>
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/guide/csv_formula.html">Importing and Exporting CSV Text Files with Formulas</a>
</p></div>
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/shared/guide/csv_params.html">CSV Filter Options</a></p></div>
</span>
</span>
</div>
</div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/shared/00/00000208.xhp" target="_blank">/text/shared/00/00000208.xhp</a></p>
<p dir="auto">Title is: Text Import</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>