Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 9

Importing Data from Excel and CSV into Power Query

Recommended resources

Hello! Welcome to the first lesson in our module on Power Query.

In the previous module, we established a strong foundation in understanding data—what it is, why its quality is crucial, and the ethical responsibilities that come with using it. As we concluded, the next logical step is to move from theory to practice. This lesson marks that transition as we begin our hands-on work with the tools you'll be teaching in your workshop.

Our learning outcome for today is to import data from Excel and CSV files into Power Query. This is the starting point for any data analysis workflow in Excel. Mastering this will enable you to show the managers in your workshop how to move away from inefficient and error-prone copy-pasting towards creating repeatable, automated data pipelines.

What is Power Query and Why Should Managers Care?

Before we dive into the "how," it's important to establish the "why." Your audience of managers will be most receptive if they understand the value proposition immediately. Power Query is not just another feature; it's a fundamental shift in how they can work with data.

At its core, Power Query is what's known as an ETL (Extract, Transform, Load) tool built directly into Excel. You can explain this to your audience with a simple analogy:

  • Extract: It pulls data from various sources without you needing to copy-paste.
  • Transform: It records your cleaning steps (which we'll cover in the next lessons).
  • Load: It places the clean data into a new sheet or data model for analysis.

The magic is that this entire process can be "refreshed" with a single click when new data arrives.

To help you frame this for your workshop, the following video provides an excellent real-world problem and contrasts the painful manual approach with the elegant Power Query solution.

Power Query for Beginners: Transform Excel Data in Minutes (2025 Tutorial Part I)

Watch the beginning of 'Power Query for Beginners' by Josh Aharonoff. It perfectly illustrates the kind of repetitive, multi-file problem that managers frequently face and positions Power Query as the solution.

Watch from the beginning to 03:24. Focus on the contrast between the manual copy-paste-lookup method and the promise of an automated, refreshable report. This is the core 'hook' for your audience.

Power Query is located in the Data tab in Excel, within a group called Get & Transform Data. This is the command center for all data import operations.

Importing Data into Power Query from Excel and CSV
The 'Get & Transform Data' group on the Data tab in Excel is your entry point to Power Query. You'll primarily use the 'Get Data' menu to connect to different file types.

Method 1: Importing from an Excel Workbook

This is one of the most common tasks. You'll often need to connect to sales reports, inventory lists, or HR data stored in Excel files. There are two main scenarios: the data is inside your current workbook, or it's in a separate file.

A. Data from the Current Workbook (From Table/Range)

If the data you want to analyze is already in a sheet in your active Excel file, the best practice is to first convert it into an Official Excel Table. A table gives your data structure, which Power Query works with best.

To create a table, simply click anywhere inside your data range and press Ctrl+T.

Once your data is in a table, you can pull it into Power Query.

Power Query for Beginners: Transform Excel Data in Minutes (2025 Tutorial Part I)

This short clip from the same video demonstrates how to bring an existing Excel Table into Power Query using the 'From Table/Range' button.

Watch from 06:34 to 07:12. Notice how clicking 'From Table/Range' automatically opens the Power Query Editor with the table's data loaded.

B. Data from an External Excel Workbook

More often, the data will be in a separate file that you receive regularly (e.g., a monthly sales export from another department). The goal is to create a live connection to that file.

The process is straightforward: Data > Get Data > From File > From Excel Workbook. This opens a browser window for you to select the file. After selecting it, the Navigator window appears, allowing you to choose which specific sheet or table within that workbook you want to import.

The following video provides a clear, step-by-step demonstration.

Learn to Automate Everything with Power Query in Excel (Download Files)

In 'Learn to Automate Everything with Power Query', instructor Leila Gharani walks through connecting to an external Excel file. This is a critical skill for your workshop.

Watch from 03:11 to 04:45. Pay close attention to the 'Navigator' window, where you select the specific sheet. Also, note the important choice at the end: 'Load' vs. 'Transform Data'. For now, we will always choose 'Transform Data' to open the Power Query Editor.

For a text-based alternative that you can use as a handout or reference, this guide provides clear screenshots of the process.

Import Data To Excel With Power Query! [2 Step-By-Step Examples]

This article from Acuity Training, 'Import Data To Excel With Power Query', provides a static, step-by-step guide for importing from an Excel workbook.

Review the section under 'Importing Data With Power Query'. The screenshots clearly map to the steps shown in the video, providing a helpful reference.


Method 2: Importing from a CSV or Text File

CSV (Comma-Separated Values) files are another extremely common format for raw data exports from business systems (like ERPs, CRMs, or databases). A CSV is a simple text file where columns are separated by a delimiter, usually a comma.

The import process is nearly identical to the one for Excel files: Data > Get Data > From File > From Text/CSV.

Importing CSV Data into Power Query in Excel
This animation shows the full workflow: navigating to Data > From Text/CSV, selecting the file, previewing the data in the Navigator, and loading it into Excel.

When you import a CSV, Power Query will show you a preview and automatically try to detect the delimiter (e.g., comma, tab, semicolon) and the data types. Usually, the default settings are correct. As before, you will choose Transform Data to proceed to the Power Query Editor.


The Power User Method: Importing All Files from a Folder

This is a technique that will be a game-changer for the managers in your workshop. Often, they don't just have one file; they have a folder full of them—for example, a separate sales report for January, February, and March. Manually combining these is tedious. Power Query can do it automatically.

The process is: Data > Get Data > From File > From Folder.

You simply point Power Query to the folder, and it will list all the files inside. You can then click Combine & Transform Data. Power Query will use the first file as a template and then automatically append all the other files in the folder into a single, unified table.

This video demonstrates the power of combining multiple CSV files.

Learn to Automate Everything with Power Query in Excel (Download Files)

This segment from Leila Gharani's video shows how to combine multiple CSV files from a single folder into one table. This is a massive time-saver.

Watch from 15:51 to 18:12. Focus on how the 'From Folder' option works and how the 'Combine Files' dialog allows you to set the rules for how all files will be merged. This is a key automation feature.

The best part? If a new file (e.g., April's sales report) is added to the folder later, the manager only needs to click "Refresh," and the new data is automatically cleaned and added to their report. This reinforces the core benefit of setting up a process once and reusing it effortlessly.

Test your understanding!

For your workshop, you are preparing three scenarios for the managers to practice. For each scenario, which import method would you instruct them to use?

  1. A single CSV file containing customer feedback downloaded from a survey platform.
  2. A folder containing 12 separate Excel files, one for each month's expense report. Each file has the same column structure.
  3. A large dataset of sales transactions that is already pasted into a worksheet in the same Excel file where you want to build your report.
Show answer
  1. Method: Data > Get Data > From File > From Text/CSV. This is the standard method for a single CSV file.
  2. Method: Data > Get Data > From File > From Folder. This is the most efficient method. It will combine all 12 files into one master table automatically.
  3. Method: First, convert the data range into an Excel Table (Ctrl+T). Then, use Data > From Table/Range. This is the best practice for working with data that already exists within the current workbook.

Conclusion

In this lesson, you've learned the essential first step of any automated data workflow: importing data into Power Query. You are now equipped to teach your workshop audience how to connect to data from single Excel and CSV files, as well as how to efficiently combine multiple files from a folder.

Key Takeaways for Your Workshop:

  • Power Query is Excel's engine for automating data import and preparation, found under the Data > Get & Transform Data tab.
  • You can create refreshable connections to external Excel workbooks and CSV files, eliminating the need for copy-pasting.
  • For data already inside your workbook, convert it to a Table (Ctrl+T) and use the From Table/Range command.
  • The From Folder option is a powerful tool for automatically combining many files that share the same layout.

Preview of the Next Lesson:
Now that we know how to get data into Power Query, our next step is to explore the environment where the "transformation" happens. In the next lesson, we will navigate the Power Query interface and understand the 'applied steps' concept. This is where you'll learn how Power Query records your actions to create a repeatable cleaning process.