When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

Good news for Excel users: You can now import data from CSV files without Power Query

To make it easier to pull a .csv or .txt file directly into Excel without having to deal with Power Query, Microsoft is introducing two new import functions.
The Microsoft Excel logo on a blurred and darkened Excel running on Windows in the background

Microsoft is making two new Import Functions (IMPORTTEXT and IMPORTCSV) available to certain Excel users. The aim of this is to help those who don't want to use something as "heavy" as Power Query for something as simple as pulling in data from a .csv or .txt file.

Starting with the first Import Function, IMPORTTEXT is a flexible tool for pulling data from text-based files like .txt, .csv, and .tsv directly into the grid. To use it in Excel, you first select the cell where you want the data to appear.

You then type =IMPORTTEXT and enter the path to your file, which can be a local path on your computer or a URL. The function's full syntax is: IMPORTTEXT(path, [delimiter], [skip_rows], [take_rows], [encoding], [locale])

IMPORTTEXT function
Image via Microsoft

This lets you specify what character separates columns, how many rows to skip or import from the file, the file's encoding, and any regional formatting. Once you press Enter, the data populates as a dynamic array.

If the file you're connecting to is on the web, you will get an authentication dialog, where you'll need to select the correct authentication method to get access.

Import Functions Auth Dialog
Image via Microsoft

The options include "Anonymous" for public files, "Windows" for resources requiring your Windows credentials, "Basic" for username and password prompts, "Web API" if an API key is needed, and "Organizational account" for corporate sign-ins.

The second Import Function, IMPORTCSV, does what you can probably already guess from the name. It is designed specifically for .csv files. This function is essentially a simplified version of IMPORTTEXT with" smart defaults", using a comma as the delimiter and UTF-8 for encoding, which means you have fewer parameters to worry about.

Image via Microsoft

Here's how to use it:

  • Select the cell where you want the imported data.
  • Type =IMPORTCSV.
  • Enter the path to your .csv file, which can be local or a URL. You can optionally specify rows to skip or a locale if needed. The full syntax is IMPORTCSV(path, [skip_rows], [take_rows], [locale])
  • Press Enter, and the data from the file loads into the grid.

As mentioned earlier, this is only available to some Excel users for now. To get access, you'd need to be in the Beta Channel of the Microsoft 365 Insider program. Specifically, you must be running Windows Version 2502 (Build 18604.20002) or later.

The new functions also do not refresh automatically; you have to use the Refresh All button on the Data tab to update the imported data.

A Windows 11 Insider Preview banner
Next Article

Microsoft is making a much-needed improvement to Windows Insider builds soon

Edifier R1280Ts bookshelf speaker
Previous Article

Improve your PC audio with this Edifier R1280Ts active bookshelf monitor speaker deal

3 Comments

Load the comments and join the conversation!

Read the comments, ask the editors questions, show respect and join the conversation.

Click here