Power Query in the web version of Excel allows you to import, clean, and reshape data from various sources directly in your browser without needing the desktop application. This tool achieves automated data preparation by recording a series of transformation steps—such as removing duplicates, filtering rows, or merging columns—which can then be refreshed whenever the source data changes. To use it, you need a Microsoft 365 subscription and your data stored in a cloud-accessible location like OneDrive or SharePoint.

What You'll Need

  • A Microsoft 365 account with a subscription that includes Excel for the web.
  • A web browser (such as Microsoft Edge, Google Chrome, or Safari).
  • A data source stored in the cloud (e.g., an Excel workbook on OneDrive, a SharePoint list, or a web-based CSV).
  • The data you intend to transform must be formatted as a Table if it is coming from another Excel sheet.

Step-by-Step

  1. Open your Workbook: Sign in to your Microsoft account and open the Excel workbook where you want the transformed data to appear.
  2. Access the Data Menu: Click on the Data tab in the top ribbon. Note that menu labels may differ slightly depending on your region or the specific version of Microsoft 365 you are using.
  3. Get Data: Select the Get Data button. In the web version, you will typically see options to import data from other workbooks or from cloud sources. Choose the source that matches where your data is currently stored.
  4. Select Your Source: If you are importing from another Excel file on OneDrive, browse your folders, select the specific file, and click Open.
  5. Pick the Table or Sheet: A Navigator window will appear. Select the specific table or sheet you want to import. You will see a preview of the data on the right side of the screen. Once you have identified the correct dataset, click Transform Data. This action opens the Power Query editor in a new browser window or overlay.
  6. Clean Your Data: Use the Power Query editor to perform your transformations. Common actions include:
    • Removing Columns: Right-click a column header and select Remove to get rid of unnecessary data.
    • Filtering: Click the dropdown arrow in a column header to uncheck values you do not want to include in your final report.
    • Changing Data Types: Click the icon next to the column header (e.g., ABC or 123) to ensure numbers are treated as decimals and dates are treated as dates.
    • Splitting Columns: Right-click a column and select Split Column to divide data based on a delimiter, such as a comma or a space.
  7. Review Applied Steps: Look at the Applied Steps pane on the right side of the editor. Every action you take is recorded here. If you make a mistake, click the X icon next to the specific step to undo it.
  8. Load the Data: Once the data looks exactly how you want it, click Close & Load. This will exit the editor and place the cleaned data into a new worksheet in your Excel web workbook.
  9. Refresh the Data: When the original source data changes, you do not need to repeat these steps. Go to the Data tab and select Refresh All to update your table with the latest information.

Common Mistakes

One of the most frequent errors is attempting to import data from a local hard drive. Power Query for the web cannot "see" your C: drive or local folders; the file must be uploaded to OneDrive or SharePoint first. If you try to link to a local path, the connection will fail or the option will simply not appear.

Another common mistake is forgetting to format source data as a Table. While Power Query can sometimes handle raw sheets, importing a named Table (created via Insert > Table) is significantly more stable. Tables provide a defined range that prevents Power Query from accidentally importing thousands of empty rows below your actual data.

Users also frequently overlook the "Applied Steps" pane. Instead of trying to undo a mistake using a keyboard shortcut (which doesn't work inside the Power Query editor), they may try to start the entire process over. The correct method is to delete the specific step in the sequence to revert the data to its previous state.

Finally, changing the name of the source file or moving it to a different folder in OneDrive will break the connection. Power Query relies on a specific file path; if that path changes, the refresh will fail because the tool can no longer find the source.

Tips

To keep your workbooks efficient, only import the columns you actually need. Loading a table with 50 columns when you only use 5 can slow down the performance of the web browser and increase the time it takes for the data to refresh.

Use the "Rename" feature for both your columns and your queries. By default, Power Query names things "Query1" or "Column1." Giving them descriptive names like "Sales_2023_Cleaned" makes it much easier to manage your workbook as it grows in complexity.

Take advantage of the "Use First Row as Headers" button. Often, when importing CSVs or sheets, Power Query loads the headers as the first row of data. Clicking this button moves those labels to the top, allowing you to perform data type transformations on the actual values.

If you are dealing with very large datasets, perform as many filters as possible early in the "Applied Steps" sequence. Filtering out unnecessary rows at the beginning reduces the amount of data the browser has to process in subsequent steps, leading to a snappier experience.

Troubleshooting

If the Get Data button is greyed out or missing, first verify that you are signed in with a business or education account, as some personal account versions have limited Power Query capabilities in the web. Ensure your browser is updated to the latest version, as outdated browsers may fail to render the Power Query editor interface.

If you receive a "Data Source Error" during a refresh, check the location of your source file. Ensure the file hasn't been renamed, moved to a different SharePoint site, or deleted. If the file was moved, you will need to go back into the Power Query editor, click the gear icon next to the "Source" step in the Applied Steps pane, and update the file path.

When the Power Query editor becomes unresponsive or freezes, the first step is to save your workbook and refresh the browser page. Because Power Query saves your steps in the workbook metadata, you generally won't lose your transformation sequence, though you may need to re-open the editor to finish your work.

If data types are appearing incorrectly (e.g., a date is showing as a random five-digit number), go back into the editor and explicitly set the data type for that column. Excel stores dates as numbers; forcing the type to "Date" in Power Query solves this display issue.

Frequently Asked Questions

Can I use Power Query web to merge two different files?

Yes, you can import multiple sources into the Power Query editor and use the "Merge Queries" or "Append Queries" options to combine them based on a matching column or by stacking them on top of each other.

Does Power Query web have the same features as the desktop version?

It has the core transformation tools, but some advanced features—like certain complex M-code functions or specific local data connectors—are only available in the Excel Desktop application.

Do I need to keep the source file open to refresh the data?

No, the source file does not need to be open. As long as the file remains in the cloud location (OneDrive/SharePoint) and you have permission to access it, the refresh will work in the background.

Can I share a workbook with Power Query connections?

Yes, but the people you share it with must also have the necessary permissions to access the underlying source files in OneDrive or SharePoint, otherwise they will see a permissions error when trying to refresh.

How often should I refresh my data?

You can refresh manually via the Data tab whenever you need the latest numbers. There is no automatic "real-time" refresh in the web version; it requires a manual trigger or a scheduled refresh if using Power BI integration.