TOP

ImportText Function

IMPORTTEXT() Description

The IMPORTTEXT function allows you to load data from a text file directly into LibreOffice Calc. You can specify delimiters, skip or select a specific number of rows, and configure encoding or locale for precise control over the imported content.

Designed for importing data from text files (such as CSV, TXT or TSV).


Key Features of the IMPORTTEXT Function

Syntax:

=IMPORTTEXT(Path; [Delimiter]; [SkipRows]; [TakeRows]; [Encoding]; [Locale])

Parameters:

Usage Example

The IMPORTTEXT() function is extremely useful for automating the processing of external data. Just specify the file path and formatting parameters, and Excel (Calc) will automatically load the content:

=IMPORTTEXT(Path; Delimiter)

We will have the following result:

Example of using the IMPORTTEXT() function
Example of using the IMPORTTEXT() function

In this example, the following values are used:

Corresponding data from the text file:

IMPORTTEXT formula usage

How It Works?

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

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

If it is necessary to convert the array formula into values - select the entire array and in the Data > Calculate menu select Formula to Value.


You can use the IMPORTCSV function as a simpler alternative for importing CSV files.

Download Extension

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

After that, this function will be available in all files 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