Contents

# Teksta CSV datņu atvēršana un saglabāšana

Comma Separated Values (CSV) is a text file format that you can use to exchange data from a database or a spreadsheet between applications. Each line in a Text CSV file represents a record in the database, or a row in a spreadsheet. Each field in a database record or cell in a spreadsheet row is usually separated by a comma. However, you can use other characters to delimit a field, such as a tabulator character.

If the field or cell contains a comma, the field or cell must be enclosed by single quotes (') or double quotes (").

## To Open a Text CSV File in Calc

1. Izvēlieties Datne - Atvērt.

2. Locate the CSV file that you want to open.

   If the file has a *.csv extension, select the file.

   If the CSV file has another extension, select the file, and then select "Text CSV" in the Filter box

3. Select Edit filter settings checkbox to open the Text Import dialog and set the import options for delimited data. If the Edit filter settings checkbox is not selected, LibreOffice Calc uses the settings of the last text import operation.

4. Klikšķiniet Atvērt.

If the Edit filter settings checkbox is selected, the Text Import dialog opens. Then:

- Specify the options to divide the text in the file into columns.

- Right-click a column in the preview to set the format or to hide the column.

- Klikšķiniet Labi.

Check the text delimiter box that matches the character used as text delimiter in the file. In case of an unlisted delimiter, type the character into the input box.

## Lai saglabātu loksni kā teksta CSV datni

When you export a spreadsheet to CSV format, only the data on the current sheet is saved. All other information, including formulas and formatting, is lost.

1. Open the Calc sheet that you want to save as a Text CSV file.

   Tikai pašreizējā loksne var tikt eksportēta.

2. Izvēlieties Datne - Saglabāt kā.

3. In the File name box, enter a name for the file.

4. In the Filter box, select "Text CSV".

5. (Optional) Set the field options for the Text CSV file.

   Select Edit filter settings.

   In the Export of text files dialog, select the options that you want.

   Klikšķiniet Labi.

6. Klikšķiniet Saglabāt.

Saistītie temati

CSV teksta datņu ar formulām importēšana un eksportēšana

Importing and Exporting Data in Base

LibreOffice - Preferences Tools - Options - LibreOffice Calc - View

Eksportēt teksta datnes

Importēt teksta datnes

Please support us!