TOP

ImportText Function

IMPORTTEXT() Description

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

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


Main Features of the IMPORTTEXT Function

Syntax:

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

Parameters:

Example Usage

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

=IMPORTTEXT(Path; Delimiter)

We will get the following result:

Example usage of the IMPORTTEXT() function
Example usage of the IMPORTTEXT() function

In this example, the following values are used:

Corresponding data from the text file:

IMPORTTEXT formula usage

How Does It Work?

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

To select all cells related to the array formula, simply select any array cell 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.


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

Download extension

You can use the function IMPORTTEXT() 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 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