• ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
Excel

Replacing Values in the Source Query in Excel

0 Comments

When processing data, you may want to replace values displayed in a certain format, but do not know how to do it. Don’t worry, in this article, I will guide you on how to replace values in the source query in Excel. Let’s take a look below!

Replacing values in Power Query

I have data as below:

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

The topic requires changing the values in the Product column to numeric category.

To do this, you will perform the following steps:

Step 1: First, your data must be converted to a table format. To create data in table format, select any cell in the data range, then go to the Insert tab, select Table, or press Ctrl + T and click OK.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

Step 2: Go to the source query interface by going to the Data tab, selecting From Table/Range.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

Display the Power Query Editor interface. Here, you will identify the object to be processed, which in this case is changing the value in the Product column to a numeric category. Therefore, you will select the Product column by clicking on the column header.

Step 3: On the toolbar, go to the Transform tab, select Replace Values.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

Step 4: Display the Replace Values table. In the Value To Find section, enter the content you want to replace, in the Replace With section, enter the content to be replaced with. In the example above, because I want to remove the “SP” character and keep only the number, I will enter a space in the Replace With section.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

Step 5: Click OK to complete.

Note: If you want to display “SP-01” to differentiate the product code behind, then in the Value To Find section, enter “SP”, and in Replace With, enter “SP-“.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

And click OK to complete.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

Step 7: To convert the Product column data to a number format, you will select the Product column by clicking on the column header, then go to the Transform tab and select Data type: Whole Number.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

However, after converting the data, you may encounter an Error row.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

To fix this error, you will do the following: Go to the Transform tab, select Replace error.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

Display the Replace Errors table, where you will enter the value to replace when an error occurs.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

And click OK, the error will be immediately replaced with another value.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

Step 8: To export the data to Excel, go to the Home tab, select Close & Load.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

The exported data will be displayed in a new sheet.

Replacing Values in the Source Query in Excel

Replacing Values in the Source Query in Excel

So I have finished guiding you on how to replace values in the source query in Excel. I hope this article will be helpful to you. If you find this article useful, don’t forget to rate it below to help me out!

Rate this post
43
305 Views
5 Great Tips for Google Sheets Users to KnowPrev5 Great Tips for Google Sheets Users to KnowMarch 11, 2023
2 Ways to Hide Worksheets in Excel (Not Easily Found)March 11, 20232 Ways to Hide Worksheets in Excel (Not Easily Found)Next

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • AVG Internet Security 2021 1 Device 1 Year Global AVG Internet Security 2021 1 Device 1 Year Global
    Rated 5.00 out of 5
    $11.00
  • Buy Office 2021 Professional Plus Key Global For 5 PC Buy Office 2021 Professional Plus Key Global For 5 PC
    Rated 5.00 out of 5
    $68.00
  • Avast SecureLine VPN 2021 2 Years 5 Devices Global Avast SecureLine VPN 2021 2 Years 5 Devices Global
    Rated 5.00 out of 5
    $47.00
  • Windows 11 Pro Product Activation Key Windows 11 Pro Product Activation Key
    Rated 5.00 out of 5
    $6.00
  • AVG Internet Security 2021 10 Devices 1 Year Global AVG Internet Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $30.00
Products
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 1 Year AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 1 Year
    Rated 4.91 out of 5
    $34.00
  • office-professional-2016-international Microsoft Office Professional Plus 2016 Retail CD Key
    Rated 4.92 out of 5
    $13.00
  • Microsoft Office 2019 Home and Student for PC Key Global bind to your Microsoft account Microsoft Office 2019 Home and Student for PC Key Global bind to your Microsoft account
    Rated 4.95 out of 5
    $58.00
  • Windows Server 2022 Standard Key Global Windows Server 2022 Standard Key Global
    Rated 4.10 out of 5
    $7.00
  • Kaspersky Small Office Security 20 PCs + 20 Mobiles + 2 Servers 1 Year Kaspersky Small Office Security 20 PCs + 20 Mobiles + 2 Servers 1 Year $284.73
  • Windows Server 2025 Remote Desktop Services 50 User Connections Windows Server 2025 Remote Desktop Services 50 User Connections $25.00
  • Project Professional 2024 Project Professional 2024 $33.00
  • Microsoft Project 2016 professional CD Key Global Microsoft Project 2016 professional CD Key Global
    Rated 4.97 out of 5
    $9.00
  • Microsoft Office Professional Plus 2010 retail Microsoft Office Professional Plus 2010 retail CD Key Global
    Rated 4.90 out of 5
    $11.00
  • Microsoft Visio Standard 2016 Key 1PC Microsoft Visio Standard 2016 Key 1PC $9.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.