TOP

ImportCSV Function

IMPORTCSV() Description

The IMPORTCSV function allows loading data from a CSV file directly into LibreOffice Calc. It provides a simplified way to retrieve comma-separated data as a dynamic array with options to skip or select rows and apply locale parameters for regional formatting.


Key Features of the IMPORTCSV Function

Syntax:

=IMPORTCSV(Path; [SkipRows]; [TakeRows]; [Locale])

Parameters:

Usage Example

The IMPORTCSV() function is extremely useful for automating external data processing. Simply specify the file path and selection parameters, and Excel (Calc) will automatically load the content:

=IMPORTCSV(Path; SkipRows; TakeRows; Locale)

We will have the following result:

Example of using the IMPORTCSV() function
Example of using the IMPORTCSV() function

In this example, the following values are used:

Corresponding data from the text file:

IMPORTCSV formula usage

How It Works?

Simply enter the IMPORTCSV() function into any cell, specifying the appropriate parameters. After that, you need to press Ctrl+Shift+Enter to enter the array formula and LO Calc will automatically return a table with data.

To select all cells associated with the array formula, simply select any cell in the array and press Ctrl+/.

If you need to convert an array formula to values - select the entire array and in the menu Data > Calculate select Formula to Value.


The IMPORTCSV function is a simplified version of IMPORTTEXT, which expects comma delimiters and UTF-8 encoding. To get more features, including support for multiple delimiters and encoding, see the section on the function IMPORTTEXT.

Download extension

You can use the function IMPORTCSV() by installing the extension YLC Utilities.

After that, this function will be available in all files that will be opened in Excel (LibreOffice Calc).


This function is also available in the following extensions: YLC FunctionsYLC Utilities

The YLC Utilities menu in LO Calc

The YLC Utilities menu in LO Calc

The YLC Utilities menu in Excel

The YLC Utilities menu in Excel