Close Menu
Tech Nova Mindset – Empower Innovation and Forward Thinking

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Meta Ran Ads That Contained AI-Generated Child Sexual Abuse Imagery

    August 6, 2026

    The Download: Google’s AI shake-up and Meta’s rogue model

    August 6, 2026

    AI Hacks Are Bad. AI Worms and Viruses Will Be Worse

    August 6, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Meta Ran Ads That Contained AI-Generated Child Sexual Abuse Imagery
    • The Download: Google’s AI shake-up and Meta’s rogue model
    • AI Hacks Are Bad. AI Worms and Viruses Will Be Worse
    • OpenAI’s Browser Could Be Hijacked to Spam Your WhatsApp Contacts
    • OpenAI Didn’t Notice Its AI Agents Using a Message Board to Plan Their Hacking Spree
    • IEEE Course on Using AI to Modernize Power Grids
    • The Most Dangerous AI Hacking Techniques Still Have Humans in the Loop
    • Puzzle Corner | MIT Technology Review
    Tech Nova Mindset – Empower Innovation and Forward Thinking
    • Home
    • Gadgets
    • Reviews
    • Tech News
    • Future Tech
    • AI & Robotics
    • How-To Guides
    • More
      • Cybersecurity
      • Startups & Innovation
    Tech Nova Mindset – Empower Innovation and Forward Thinking
    Home»How-To Guides»How to use fuzzy matching in Power Query to clean up Excel data
    How-To Guides

    How to use fuzzy matching in Power Query to clean up Excel data

    kirklandc008@gmail.comBy kirklandc008@gmail.comFebruary 4, 2026No Comments6 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    How to use fuzzy matching in Power Query to clean up Excel data
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Standard Excel lookups are perfectionists that fail on typos or extra spaces. While you could hack a solution using nested XLOOKUP, TRIM, and LOWER functions, it’s brittle and hard to maintain. Power Query fuzzy matching is the smarter, “close enough” way to work.

    Power Query uses a sophisticated fuzzy matching algorithm to calculate a similarity score between two strings, bridging the gap between “Microsoft” and “Mcrosoft” without a single manual edit. This means you can merge messy exports with cleaner master databases in seconds.

    The full Power Query experience—including creating and editing queries—is natively available in Excel for Microsoft 365 (desktop), Excel for the web (Business and Enterprise plans), and Power BI.

    The goal: A tale of two tables

    Imagine you have a sales report (T_Sales, orange) full of manual entries, and you need to pull the sales region from a master table (T_Master, green).

    However, because of typos and different naming conventions in T_Sales, a standard XLOOKUP would return #N/A for pretty much every lookup. So, we need Excel to look at the names in T_Sales, find the closest match in T_Master, and return the region, even if the spelling is slightly off.

    To handle specific business shorthand that no algorithm can guess (like “MSFT”), you also need a small bridge table (T_Abbrev, blue) with From and To column headers. Make sure this table is ready before you begin.

    Step 1: Import your data using connections

    Before letting the algorithm loose, you need to bring all three tables into the Power Query engine. Start by ensuring your data ranges are formatted as Excel tables (Ctrl+T). Then, import the first table by selecting any cell in the table and clicking Data > From Table/Range.

    Related

    If You Don’t Rename Tables in Excel, Today’s the Day to Start

    What’s in a name? Well, quite a lot.

    To avoid cluttering your workbook, don’t click the standard “Close & Load” button after importing each table to Power Query. Instead, click the down arrow and select “Close & Load To.”

    Then, in the Import Data dialog, select “Only Create Connection,” and click “OK.”

    After you’ve repeated this process for all three tables, you’ll see them as connections only in the Queries & Connections pane (which opens automatically after you create the first connection), ready for the merge.

    Step 2: Merge your tables to begin the cleanup

    To begin the cleanup, right-click “T_Sales” in the Queries & Connections pane and select “Merge.”

    Then, in the Merge dialog, select “T_Master” as the second table, and in both table previews, select the “Name” column. Essentially, you’re telling Excel that you want to smash the T_Sales and T_Master tables together, and the Name column is what connects them.

    Now, check “Use fuzzy matching to perform the merge” to tell Excel that some of the connections aren’t perfect due to typos or inconsistent naming conventions. Under the hood, the Ignore Case option is checked by default, meaning “MICROSOFT” will correctly match “microsoft” without any extra steps. For the Join Kind, stick with “Left Outer”—this ensures you keep every sales transaction while simply tagging on the matching regional info.

    Related

    How You Can Use Wildcards in Microsoft Excel to Refine Your Search

    Find partial matches in an instant.

    Step 3: Dial in the similarity threshold

    OK, so you’ve told Excel which tables you’re merging, the connecting variable, and that the matches aren’t exact. Now, you need to set the threshold.

    Click the arrow next to “Fuzzy matching options.”

    The similarity threshold is a scale from 0.00 to 1.00, where 0.00 matches all values with any level of similarity, and 1.00 matches only exact values. Notice in the screenshot above that three of the six rows are matched. This is because Power Query defaults to a 0.80 similarity threshold. At this level, the engine is strict—it easily catches “Microsoft Inc” but fails on more aggressive typos like “Appel” or “Gogle.”

    In this case, a threshold of 0.50 is low enough to catch “Appel” and “Gogle” without accidentally matching unrelated words. It finds five out of six rows, leaving only the “MSFT” abbreviation unmatched.

    Step 4: Apply the transformation table for abbreviations

    No algorithm is smart enough to know that “MSFT” means Microsoft. This is where the T_Abbrev table comes into play—in the Transformation Table drop-down menu, click “T_Abbrev,” and this forces the engine to treat your manual overrides as perfect matches. Once selected, your match count at the bottom will jump to a perfect six of six.

    Step 5: Clean up and summarize your final report

    When you click “OK,” you’re taken to the Power Query Editor with a new column full of table results.

    Click the “Expand” icon in the column header, uncheck “Use original column name as prefix” to prevent clunky headers like T_Master.Name, and click “OK.”

    You can see that the names are now standardized in a new Name.1 column and the regions are appended in a new Region column.

    From here, remove the original messy Name column (right-click the column header and select “Remove”), click and drag the new Name column to the left so that it’s the first column in the table, and rename it (double-click the column header) to something like Official Name. While you’re there, make sure that the correct data types are assigned to each column by clicking the icons in the column headers.

    Related

    How to Clean Up and Import Data Using Power Query in Excel

    Don’t overlook this amazing Excel tool!

    Because this process tags every individual transaction, you end up with multiple rows for the same company. To turn this into a clean report, in the Transform tab, click “Group By.”

    Then, in the Group By dialog, select the “Advanced” radio button at the top. This lets you group by multiple columns at once. In this case, we want to group by the Name and Region columns. To do this, for the first grouping, select “Official Name.” Then, click “Add grouping,” and select “Region.”

    Now, set the calculation. In the New column name field, type Total Sales, in the Operation field, select “Sum,” and in the Column field, select “Sales.”

    When you click “OK,” all repeated rows are aggregated.

    Once you’ve reviewed the results to confirm that all the data appears as expected, click “Close & Load” in the Home tab.

    Now, your beautifully summarized, perfectly spelled data appears in a fresh Excel sheet. Here’s a before-and-after screenshot that shows you the benefit of using Power Query’s fuzzy matching to merge and clean up messy datasets in Excel.

    Standard lookups are too rigid for the reality of messy data. By using fuzzy matching, you trade manual data entry for a scalable, automated system that understands intent rather than just syntax. This is just one of many ways to leverage Power Query tools to tidy up messy spreadsheet data—once you get started, you won’t be able to stop!

    OS

    Windows, macOS, iPhone, iPad, Android

    Free trial

    1 month

    Microsoft 365 includes access to Office apps like Word, Excel, and PowerPoint on up to five devices, 1 TB of OneDrive storage, and more.

    Clean data Excel fuzzy matching Power query
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    kirklandc008@gmail.com
    • Website

    Related Posts

    IEEE Course on Using AI to Modernize Power Grids

    August 5, 2026

    Heat Is an Orbital Data Center’s Greatest Foe. These Tiles Dump It at the Source.

    August 5, 2026

    Closing the data loop in AI-driven drug discovery

    July 28, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Nothing CEO says phone prices are going to keep going up

    June 12, 20267 Views

    Google DeepMind Plans to Track AGI Progress With These 10 Traits of General Intelligence

    March 21, 20263 Views

    The AirPods 4 and Lego’s brick-ified Grogu are our favorite deals this week

    October 12, 20253 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews

    Subscribe to Updates

    Get the latest tech news from FooBar about tech, design and biz.

    Recent Posts
    • Meta Ran Ads That Contained AI-Generated Child Sexual Abuse Imagery
    • The Download: Google’s AI shake-up and Meta’s rogue model
    • AI Hacks Are Bad. AI Worms and Viruses Will Be Worse
    • OpenAI’s Browser Could Be Hijacked to Spam Your WhatsApp Contacts
    • OpenAI Didn’t Notice Its AI Agents Using a Message Board to Plan Their Hacking Spree

    Meta Ran Ads That Contained AI-Generated Child Sexual Abuse Imagery

    August 6, 2026

    The Download: Google’s AI shake-up and Meta’s rogue model

    August 6, 2026

    AI Hacks Are Bad. AI Worms and Viruses Will Be Worse

    August 6, 2026

    OpenAI’s Browser Could Be Hijacked to Spam Your WhatsApp Contacts

    August 6, 2026
    Facebook X (Twitter) Instagram Pinterest
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms and Conditions
    • Disclaimer
    © 2026 TechNovaMindset. Designed by By Pro.

    Type above and press Enter to search. Press Esc to cancel.