Importere og eksportere kommadelte tekstfiler (CSV-filer) med formler
Kommadelte verdier (Comma Separated Values – CSV) er et filformat for tekstfiler som inneholder celleinnholdet i et enkelt regneark. Komma, semikolon eller andre tegn brukes for å skille celler. Tekststrenger blir satt i hermetegn, tall blir skrevet uten hermetegn.
For å importere en CSV-fil
-
Velg Fil → Åpne.
-
In the File type field, select the format "Text CSV". Select the file and click Open. When a file has the .csv extension, the file type is automatically recognized.
-
You will see the
dialog. Click .
If the csv file contains formulas, but you want to import the results of those formulas, then choose LibreOffice - PreferencesTools - Options - LibreOffice Calc - View and clear the Formulas check box.
To Export Formulas and Values as CSV Files
-
Velg arket du vil skal lagres som en CSV-fil.
-
Hvis du vil eksportere formler som formler, for eksempel «=SUMMER(A1:B5)», gjør du følgende:
Choose LibreOffice - PreferencesTools - Options - LibreOffice Calc - View.
I området Vis kryss av for Formler. Trykk på OK.
Hvis du vil eksportere resultatet av beregningene istedenfor formlene, må Formler være slått av.
-
Velg Fil → Lagre som. Dialogvinduet Lagre som åpnes.
-
In the
field select the format "Text CSV". -
Skriv inn et filnavn og velg Lagre.
-
From the Export of text files dialog that appears, select the character set and the field and text delimiters for the data to be exported, and confirm with OK.
-
If necessary, after you have saved, clear the Formulas check box to see the calculated results in the table again.