TOP

Function ImportCSV

IMPORTCSV() Description

The IMPORTCSV function allows you to load data from a CSV file directly into Excel (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.


Main Characteristics of the IMPORTCSV Function

Syntax:

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

Parameters:

Example of Use

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 Does It Work?

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 of the array and press Ctrl+/.

If it is necessary to convert the array formula to a value - 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 encodings, see the section on the function IMPORTTEXT.

Download extension

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

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


This function is available in the following extensions: YLC LightYLC 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