• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
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
35
283 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
  • Kaspersky Internet Security 2021 1 year 5 devices key Global Kaspersky Internet Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $45.00
  • Windows Server 2022 Datacenter Key Global Windows Server 2022 Datacenter Key Global
    Rated 5.00 out of 5
    $7.00
  • Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year
    Rated 5.00 out of 5
    $164.50
  • Avast Ultimate Suite 2021 1 Year 10 Devices Global Avast Ultimate Suite 2021 1 Year 10 Devices Global
    Rated 5.00 out of 5
    $54.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
Products
  • 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
  • Kaspersky Internet Security 2021 1 year 5 devices key Global Kaspersky Internet Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $45.00
  • Office 2019 Professional Plus Key Global Bind to your Microsoft Account Office 2019 Professional Plus Key Global Bind to your Microsoft Account
    Rated 4.97 out of 5
    $49.00
  • microsoft office home and business 2019 pcmac key Microsoft Office Home And Business 2019 (MAC) key bind to your Microsoft account
    Rated 4.95 out of 5
    $30.00
  • Microsoft Office Professional Plus 2019 CD Key Global Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.92 out of 5
    $32.00
  • Kaspersky Internet Security 2021 1 year 1 device key Global Kaspersky Internet Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $24.00
  • Microsoft Visual Studio 2019 Professional Key Microsoft Visual Studio 2019 Professional Key
    Rated 4.84 out of 5
    $15.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
  • office-professional-2016-international Microsoft Office Professional Plus 2016 Retail CD Key
    Rated 4.92 out of 5
    $13.00
  • Buy Windows 11 Home CD Key Global Buy Windows 11 Home CD Key Global
    Rated 4.73 out of 5
    $6.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.