What is Fuzzy Matching?

Why CPAs Should Know About This Powerful Tool

DOWNLOAD PDF

TECHNOLOGY ISSUES

By Shivam Arora, CPA

In accounting, we regularly encounter situations where work is being performed manually and there is substantial scope of automation. For example, a CPA was downloading sales tax permits for their client’s vendors to perform scoping for potential tax refunds. After downloading a permit, they would move it manually to the respective vendor’s folder.

This process, they complained, took hours of their time, especially since multiple state permits had to be downloaded per vendor. However, the even more frustrating fact was that all file names “almost” contained their vendor’s name, with omissions of letters and additions of special characters that did not seem to follow any one pattern.

This is a common problem. There are many business cases where practitioners spend time over text matching tasks that are intuitively obvious but do not follow a pattern and therefore, must be performed manually. Fortunately, solutions exist, such as fuzzy matching.

RELATED CPE:

Artificial Intelligence for Accounting and Financial Professionals

Fuzzy Matching

Fuzzy matching encompasses an umbrella of statistical techniques that compare and match approximately equal strings. These techniques employ statistical rules to arrive at a relative degree of truth on the similarity between two strings, in contrast to a Boolean approach, which uses a separate, hard-coded format for each task to provide a Yes/No answer.

The concept of fuzzy matching is analogous to the substance over form principle in accounting. It’s the same reason why passthrough entities do not pay income tax even though they are technically separate legal entities to their owners or why the IRS sometimes classifies unusually large salary payments to owners as dividends even though they are technically salary payments.

Fuzzy matching, like these cases, gives preference to substantial equivalence between strings over their technical form.

The Underlying Logic

There are several approaches available to fuzzy match data, but I'm going to go briefly over the most common one. The Levenshtein Distance (LD) is commonly used to establish similarity between two strings. It is the minimum number of single character edits that are required for changing either of the two strings into the other. An edit can refer to a character’s insertion, deletion or replacement. Consider the following strings:

charlie_vendor
$charl_vndr$

Assume that the naming convention of vendors in a system is “{name}_vendor.” It is intuitively obvious that the file downloaded is for the vendor Charlie. However, unless all downloaded files follow the same naming convention as above, a Boolean approach to matching will declare both strings unequal.

When I run LD-based fuzzy matching (LDFM) in Python, I get an LD of 6. This means that the shortest number of single-character changes to exactly match the file name and the vendor’s name is 6. Converting it into the LD ratio (using a formula I will not delve into), I obtain .77.

What I now have is a quantified degree to which both strings are similar: my computer understands that both strings are about 77% similar. It still knows that they are not equal; it has just established equivalence

Applications of Fuzzy Matching in Accounting

There can be several applications of fuzzy matching in accounting. A few of them follow.

File Renaming. As with the above case, fuzzy matching can be used to rename downloaded files and match them to their respective group. Names of files downloaded from the internet often contain either truncated text or unwanted characters.

Support Accounting Processes. Fuzzy matching can support accounting processes such as bank reconciliations, inventory tracking and evidence gathering for various types of audits.

Internal Controls. Fuzzy matching can detect duplicate AP payments with minor variations, compare purchase orders to deliver invoice/bill of lading and enforce data entry checks. In case of fraud, it can also aid in identifying matches across different databases or comparing fraudulent acts across different time periods.

Preprocessing for ML. With the arrival of artificial intelligence, organizations are increasingly utilizing machine learning (ML) techniques. A substantial amount of ML in the financial space occurs on data generated by accounting systems. By facilitating preprocessing of data using fuzzy matching techniques, organizations can develop robust and accurate ML models.

A Coding Exercise

One can perform fuzzy matching in Excel (refer to the article "Excel: Fuzzy Matching" by Bill Jelen in Strategic Finance magazine). Unsurprisingly though, the functionality is extremely limited and there is little clarity on what technique is used. A better alternative may be the programming language Python.

Python is a high-level programming language that is general-purpose; it can be used to code for a wide variety of situations. The beauty of Python is that it is intuitive and relatively easy to learn, which is why it is used extensively in business. It hosts numerous libraries that are specifically designed for business-related tasks.

See this: Fuzzy Matching Exercise

Case Examples

Consider the below as examples of how helpful fuzzy matching can be for accountants and auditors.

1. A CPA is performing a quarter-end bank reconciliation. There are 300+ entries on both sides. The CPA notices that transaction descriptions on bank statements are similar to those in the books, albeit with expected differences such as truncations, word order and unwanted characters. Using LDFM, the CPA can match 270 transaction descriptions between the bank and the books. The CPA also verifies that the corresponding amounts across these transactions are equal.

The CPA now begins to reconcile the remaining few transactions on both sides. Using fuzzy matching has greatly reduced the manual workload.

2. A tax consultant is working on a reverse audit for one of their clients. The consultant must download sales/use tax permits for the client’s 500+ vendors to ascertain the type of permits held in the relevant states.

For simplicity, assume that a single file contains all permits for one vendor. The consultant has an Excel file with a list of all vendors. Instead of manually linking each vendor to their corresponding permit, the consultant employs LDFM. This results in a >90% confidence match for 460 vendors.

After a cursory review of the matches to ensure accuracy, the consultant needs to only focus on the unmatched vendors for linking permits manually. If it takes 30 seconds for the consultant to browse through all permits to find the correct permit for each vendor and they have a code already available to perform LDFM, they have just reduced the task time by close to four hours.

3. One warehouse of a manufacturing company uses LDFM to compare raw materials ordered on a purchase order to those received and listed on the invoice. This helps the warehouse detect not only discrepancies between the quantity of items ordered, but also between their type.

Over the years, the warehouse has been able to reduce purchase return-related costs by up to 40% by refusing delivery of suboptimal orders. You can read the outstanding use case of fuzzy matching in fraud examination in an article written by Ehsanelahi in Data Ladder titled "Fuzzy Matching 101: Cleaning and Linking Messy Data."

A Powerful Tool

Given the nature of accounting work, fuzzy matching techniques can be a powerful tool in a CPA’s arsenal.

Fuzzy matching can be performed in Excel but is much more powerful when performed in a programming language such as Python, which is an intuitive programming language that, in addition to core software development, has extensive use cases in a business setting.

As evident, it is not hard to follow most (if not all) aspects of the Python exercise above even without basic knowledge of the language. CPAs should consider learning a programming language to automate much of the manual tasks they perform.

About the Author: Shivam Arora, CPA, is a data scientist. Arora holds dual master’s degrees: an MS in Accounting and an MS in Business Analytics. As an applied Artificial Intelligence (AI) consultant at one of the largest consulting firms in the world, Arora specializes in applied AI for accounting and finance. Research interests include financial modeling and statistical relationships in the financial markets, application of AI to accounting and Robotic Process Automation (RPA). Email shivam.arora@mavs.uta.edu.

 

 

  • Workforce Development

    Mentoring Matters: Strengthening the Future of the Profession

    Mentoring is a cornerstone of the accounting profession. From supporting students and CPA candidates to accelerating the growth of experienced professionals, mentoring strengthens confidence, preserves institutional knowledge and prepares future leaders. TXCPA's Mentor Match program is designed to help members build meaningful professional relationships that support their career growth and development.
    View Article
  • CPE: Intangible Assets – ASC 350

    FASB’s recent targeted GAAP improvements address the accounting and reporting of internally developed software. ASU 2025‑06 replaces development‑stage rules for internal‑use software with a “probable‑to‑complete” capitalization threshold.
    View Article
    IPR&D
  • volunteer leadership

    Leadership, Innovation and Momentum Take Center Stage at TXCPA's Annual Meeting

    TXCPA’s 2026 Annual Meeting brought more than 200 leaders together to celebrate organizational achievements, discuss emerging trends and shape the future of the organization. As the organization enters the final year of its Strategic Plan, the meeting emphasized momentum, collaboration and continued involvement in TXCPA and the accounting profession.
    View Article
  • Expanding the CPA Pipeline: An Important Joint Initiative for CPA Firms and K-12 Schools

    CPA firms, universities and professional organizations are using coordinated efforts to expand the future CPA talent pipeline by reaching students much earlier in the K‑12 system. Because many students choose career pathways as early as 8th grade, the authors emphasize shifting outreach toward freshmen and sophomores already inclined toward business studies.
    View Article
    TXCPA Accounting Opportunities Month
  • Workforce Development

    Mentorship, Momentum and the Future of the Profession

    Strong connections are essential to the future of the CPA profession. This CEO's Message highlights the power of mentorship, TXCPA’s efforts to strengthen the accounting pipeline, and the many ways members, volunteers and chapters are helping build opportunities for the next generation of CPAs.
    View Article
  • Outstanding Chapter Awards Recognize Achievements in Leadership and Service

    TXCPA’s Outstanding Chapter Awards recognize small and medium-sized chapters for excellence in leadership, member service, innovation and community involvement. The 2025-26 recipients, TXCPA Rio Grande Valley and TXCPA East Texas, were honored for their strong student outreach initiatives, professional development opportunities, scholarship fundraising, member engagement and community service.
    View Article
    volunteer leadership
  • Workforce Development

    Beyond Tax and Audit: Shedding Light on Alternative Career Pathways

    Accounting offers far more career opportunities than traditional tax, audit and financial reporting roles. By introducing students to the diverse ways accounting skills can be applied, educators and practitioners can help the next generation of CPAs see the many possibilities an accounting career can offer.
    View Article
  • What’s Happening Around Texas - September-October 2026

    TXCPA chapters across Texas are strengthening connections through student engagement events, legislative conversations, member appreciation gatherings, and strategic planning sessions. From Corpus Christi’s student bowling mixer and to Southeast Texas’ celebration with Lamar University to El Paso's and San Antonio’s focused planning meetings and Victoria’s community‑building event, each chapter is fostering momentum, collaboration and professional growth.
    View Article
    TXCPA Chapters
  • Tenure

    Is Accounting Academia Still a Good Career Option for CPAs? An Updated Perspective

    Is accounting academia still an attractive career path for CPAs? Although demand for accounting Ph.D. graduates has declined despite earlier predictions of faculty shortages, accounting professors continue to enjoy strong compensation, work/life balance, tenure stability and summer flexibility.
    View Article
  • Spotlight Article: Leading Beyond the Numbers

    Eric R. Alexander discusses the lessons behind his book “Stewardship Leadership for Stinkin' Accountants: Serving as the CFO” and how a servant mindset, wisdom and relationships create a lasting impact. He explores why trust, accountability and communication are essential to effective financial leadership, especially as AI transforms the profession.
    View Article
    Strategic Planning
  • Sustainability reporting

    Assessing Materiality of ESG Risks: Guidance for CPAs

    This article explains how CPAs can assess and disclose material environmental, social and governance (ESG) risks that may affect a company’s financial position, operations and stakeholders. The concept of double materiality is introduced, which considers both the financial impact of ESG risks on a company and the company’s impact on society and the environment.
    View Article
  • Leading the Way: TXCPA Thanks Our 2026-2027 Faculty and Student Ambassadors

    TXCPA celebrates and thanks our 2026–2027 Faculty and Student Ambassadors, whose leadership and enthusiasm bring our programs, resources and opportunities directly to campuses across Texas. Their commitment strengthens our connection to future professionals and fuels the growth of the CPA pipeline statewide.
    View Article
    volunteer leadership
  • valuation

    Profitable Is Not the Same as Valuable

    A profitable business is not necessarily a valuable or transferable one, as enterprise value depends on organizational architecture rather than dependence on the owner’s involvement. The central message: profitable operations generate income, but only well‑structured businesses build equity that can be sold, transferred or relied upon for retirement.
    View Article
  • A New Era for CPA Licensure in Texas – and a Look Ahead

    Texas has entered a new phase of CPA licensure with the implementation of Senate Bill 262 on August 1, 2026, creating an alternative pathway that allows candidates to qualify with 120 hours of education and two years of experience, alongside the traditional 150‑hour route. As the 2027 legislative session approaches, TXCPA is preparing to protect strong licensing standards, monitor deregulation efforts and engage newly elected lawmakers.
    View Article
    Workforce Development
  • TXCPA Member Insurance

    Take Note

    In this edition of Take Note: A Legacy of Mentorship - A Tribute to John Baines, CPA-Dallas; Accountants Confidential Assistance Network (ACAN); CGMA® Designation; TXCPA Member Insurance
    View Article
  • Classifieds

    The Classifieds section of Today's CPA provides a one-stop destination to find practices for sale, connect with buyers, and access services that support growth, transition and market expansion.
    View Article
    Virtual Accounting

 

CHAIR
Angela Ragan, CPA

PRESIDENT/CEO
Jodi Ann Ray, CAE, CCE, IOM

CHIEF OPERATING OFFICER
Melinda Bentley, CAE

EDITORIAL BOARD CHAIR
Derrick Bonyuet-Lee CPA, CGMA

MANAGER, MARKETING AND COMMUNICATIONS
Peggy Foley
pfoley@tx.cpa

MANAGING EDITOR
DeLynn Deakins
ddeakins@tx.cpa

CLASSIFIEDS
DeLynn Deakins
ddeakins@tx.cpa

Texas Society of CPAs
14131 Midway Rd., Suite 850
Addison, TX 75001
972-687-8550

 

 

EDITORIAL BOARD
Derrick Bonyuet-Lee, CPA-Austin;
Drew Chumley, CPA-Fort Worth;
Adam Dimmick, CPA-Houston;
Julia Frink, CPA-Fort Worth;
Baria Jaroudi, CPA-Houston;
Jeffrey Johanns, CPA-Austin;
Brian Johnson, CPA-Central Texas;
Michael Kraten, CPA-Houston;
Lucas LaChance, CPA-Dallas;
Shilpa Boggram Sathyamurthy, CPA-Houston.

CONTRIBUTORS
Melinda Bentley; Kenneth Besserman; Holly McCauley; Shicoyia Morgan; Craig Nauta; Triniti Patterson