Excel Function to Import Data from a CSV Link

If you just need to excel function to import data from a csv link and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: open the file via Data ▸ From Text/CSV (not by double-clicking), check the detected delimiter and column types in the preview, then Load.

On this page7
▤Annotated stepsExcel
1

Open a blank workbook and use Data ▸ From Text/CSV to pick the .csv file.

2

In the preview, set the delimiter (comma, semicolon, tab) and File Origin/encoding if characters look wrong.

3

Click Transform Data to set column types — make ID-like columns Text so leading zeros survive.

4

Close & Load, then save the result as .xlsx. Or paste/upload the CSV into the converter above and download the .xlsx directly.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

A .csv is plain text, not an Excel file — Excel merely knows how to display it. Double-clicking lets Excel guess the delimiter and data types, which is where mangled umlauts, stripped leading zeros, and dates like 1/2 turning into February 1st come from. Importing through Data ▸ From Text/CSV (Power Query) shows a preview where you control the delimiter, encoding, and per-column types before anything is loaded. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “excel function to import data from a csv link”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected formula change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a data step that keeps your analysis trustworthy useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

A bank export orders.csv uses semicolons and contains the customer number 007. Double-clicked, Excel shows 7 in one column on some systems and everything-in-column-A on others. Imported via From Text/CSV with delimiter Semicolon and the customer column set to Text, it loads as 007 in its own column — then File ▸ Save As .xlsx makes it a real workbook. Almost every system exports CSV, and almost every recipient wants a clean spreadsheet. Controlling the import (or converting directly) prevents the classic silent data corruption: lost zeros, wrong dates, broken characters. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.

In Google Sheets

This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. If you take one thing from this page on “excel function to import data from a csv link”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.

Common mistakes

  • Double-clicking the CSV and letting Excel guess the delimiter and types.
  • Losing leading zeros because numeric-looking IDs were auto-typed as numbers.
  • Broken ä/ö/ü because the file is UTF-8 but was read as ANSI — set File Origin to 65001: Unicode (UTF-8).
  • Saving the imported data back as .csv and wondering where the formatting went — save as .xlsx.

Frequently asked questions

Is a CSV file an Excel file?

No. CSV is plain text with delimiter-separated values. Excel can open and display it, but features like formulas, formatting, and multiple sheets need .xlsx.

Why does my CSV open with everything in column A?

The file's delimiter does not match your system list separator (comma vs. semicolon). Import via Data ▸ From Text/CSV and set the delimiter explicitly.

Is the converter on this page safe for confidential data?

Yes — it builds the .xlsx entirely in your browser. Nothing is uploaded.

Other ways people ask this

This is also commonly searched as “how to import data from excel”, “excel link function”, “data function in excel” and “import data from internet to excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.

Why do people search for this in so many different ways?

Because the same task has many names. “how to import data from excel”, “excel link function”, “data function in excel” all point at the one operation explained on this page, which is why they all lead here.