Replace values (Power Query)

Important   This article applies to Power Query, a data analysis feature available for Excel that lets you discover, combine and refine data. You may need to enable Power Query in Excel. You can also download and install the most recent version of Power Query for Excel, which automatically enables it. Power Query technology is also built into the Power BI Designer, which is a stand-alone report authoring and data transformation tool for Power BI.

Note   For a very quick video on how to display Query Editor, see the end of this article.

With Power Query, you can replace one value with another value in a selected column.

I want to

Replace text values

To replace text values

Replace number, Date/Time. or logical values

To replace number, Date/Time. or logical values

Replace text values

Using the Query Editor ribbon:

  1. In the Query Editor ribbon, from the Transform tab, select Replace Values.

Using the Query Editor context menu:

  1. Right-click a text cell, and click Replace Values.

To replace text values

  1. In the Replace Values dialog box, enter Value To Find and Replace With.

  2. Click Match entire cell contents option to replace cells from the entire contents; otherwise, Replace Values replaces each Value To Find match.

  3. Click OK.

Replace Values in the Query Editor

Top of Page

Replace number, Date/Time. or logical values

Using the Query Editor ribbon:

  1. In the Query Editor ribbon, , from the Transform tab, select Replace Values.

Using the Query Editor context menu:

  1. Right-click a number or Date/Time cell, and click Replace Values.

To replace number, Date/Time. or logical values

  1. In the Replace Values dialog box, enter Value To Find and Replace With.

  2. Click OK.

Top of Page

Note   The Query Editor only appears when you load, edit, or create a new query using Power Query. The following video shows the Query Editor window appearing after editing a query from an Excel workbook. To view the Query Editor without loading or editing an existing workbook query, from the Get External Data section in the Power Query ribbon tab, select From Other Sources > Blank Query. The following video shows one way to display the Query Editor.

How to see Query Editor in Excel

Applies To: Excel 2013, Excel 2010



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language