Standardize Messy Customer or Supplier Names

What You Will Learn

You will learn how to use Gemini to standardize inconsistent customer or supplier names, such as IBM, I.B.M., and International Business Machines, without overwriting the original raw data.

Required Dataset

No external dataset is required.

Create three tabs:

Raw_Names
Name_Cleanup
Name_Check

Before You Start

In Raw_Names, create a small list of messy names:

IBM
I.B.M.
International Business Machines
Microsoft
Microsoft Corp.
MICROSOFT CORPORATION
Google
Alphabet Inc.
Alphabet
Amazon
Amazon.com Inc.

The goal is to create a standardized name field while preserving the raw name for auditability.

Step-by-Step Instructions

Step 1. Create a cleanup table

In Name_Cleanup, create these columns:

Raw Name
Cleaned Name
Suggested Standard Name
Confidence Level
Review Needed
Notes

Copy the raw names from Raw_Names into the Raw Name column.

Step 2. Add a basic cleanup formula

In Cleaned Name, use:

=TRIM(REGEXREPLACE(A2,”\s+”,” “))

This removes extra spaces but does not decide whether two names are the same company.

Step 3. Ask Gemini to suggest standard names

Ask Gemini:

Act as a data cleanup analyst.

Objective: Standardize the company names in Name_Cleanup.Use the Raw Name and Cleaned Name columns.

Return:

  1. Raw Name
  2. Suggested Standard Name
  3. Confidence Level: High, Medium, or Low
  4. Review Needed: Yes or No
  5. Notes

Rules:

– Do not overwrite the raw name.
– Group obvious variants, such as IBM, I.B.M., and International Business Machines.
– Mark uncertain rows for review.
– Do not assume two names are the same company unless the match is clear.

Paste Gemini’s suggestions into the relevant columns.

Step 4. Add a review-needed rule

If Confidence Level is in column D, use this formula in Review Needed:

=IF(D2=”Low”,”Yes”,”No”)

You can also manually mark Review Needed as Yes when a company has multiple possible parents, subsidiaries, legal entities, or brands.

Expected Result

You should have a name cleanup table with raw names preserved, cleaned names, suggested standard names, confidence levels, review flags, and notes.

Check Your Work

Confirm that raw names were not overwritten, obvious variants were grouped, uncertain matches were flagged, and Gemini did not merge companies based only on vague similarity.

Optional Extension

Ask Gemini:

Create a reusable name-standardization rule set for customer and supplier data. Include rules for acronyms, punctuation, legal suffixes, subsidiaries, brands, and manual review.

How to get started

1

arrow-down-blue

Tell us about your project

2

arrow-down-blue

Interview candidates

(We’ll provide bios within 48 hours on average)

3

Select your consultant and start work

Find a Consultant

or email us at: [email protected]