500 free credits, no card. Try Smalt AI →

Sales

How do I clean up a messy lead list in Excel before importing it into HubSpot

Back up the file, strip stray spaces, fix case, dates and phones, remove duplicate emails, then save as CSV or XLSX. Renaming headers is optional.

Smalt AI team ·

Work on a copy of the file, strip hidden spaces with TRIM and CLEAN, standardise case, dates and phone numbers, then remove duplicate emails with Data > Remove Duplicates. Keep everything on one sheet and save as .xlsx or UTF-8 .csv. HubSpot matches contacts on email by default, so clean emails matter most.

Clean the file in six steps

Here is what the formulas below do to typical messy values:

Messy valueFixClean value
[email protected]TRIM + LOWER[email protected]
ACME corp (non-breaking space)SUBSTITUTE + TRIMACME corp
Rivera, Ana in one cellText to ColumnsRivera and Ana in two cells

1. Back up and get to one sheet

Copy the original file before you change anything, because later steps overwrite data.

HubSpot’s import file requirements allow .csv, .xlsx and .xls, and the file can have only one sheet. Delete or move any extra tabs now. The first row must hold headers.

2. Remove stray spaces and hidden characters

Lead lists exported from forms, events and scrapers usually carry leading and trailing spaces. Add a helper column next to the messy one and use =TRIM(CLEAN(A2)).

Microsoft’s top ten cleaning guide sets out the limits. TRIM removes only the standard space (character code 32). CLEAN removes non-printing characters (codes 0 to 31). For a non-breaking space (character 160), the guide points to SUBSTITUTE:

=TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," ")))

Fill the formula down, copy the helper column, paste it back as values, then delete the original column. Paste as values first, because the formulas break once the source column is gone.

3. Normalise case and split names

Use =LOWER(B2) on the email column and =PROPER(C2) for first and last names, but check the result. Microsoft’s guide notes that PROPER can mangle acronyms, and it will also turn “McDonald” into “Mcdonald”.

If full names sit in one cell, split them with Data > Text to Columns using a space or comma, then scan for middle names and suffixes, which split unevenly. HubSpot’s guide to managing a contact list in Excel says first and last names should not be stored in the same cell.

4. Fix numbers, dates and phone numbers

Numbers stored as text can be converted with VALUE or Excel’s Convert to Number option. Dates stored as text can often be rebuilt with DATE or DATEVALUE. Both are our suggestions, so test them on a few rows first.

HubSpot has its own rules, per its import file page:

  • Dates can be day-month-year, month-day-year or year-month-day, separated by slashes, hyphens or periods. Pick one order for the whole column. If a cell was filled with Excel’s date picker, set its format to Number.
  • Phone numbers should follow the pattern +[country code][number], for example +11234567890. Write extensions as ext123.
  • Non-English characters need UTF-8 encoding if you save as CSV.

5. Remove duplicate emails

Do this after the TRIM and LOWER passes. Microsoft notes that duplicate counts can include blanks and spaces. It does not say whether Remove Duplicates is case-sensitive, so lowercasing first removes the question.

To preview, select the email column and use Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values. To remove, use Data > Remove Duplicates and tick only Email. Removal is permanent, so copy the data first.

HubSpot’s deduplication page says contacts are matched on email by default, and companies on company domain name. It does not say what happens when the same email appears twice inside one import file. Deduplicating in Excel first is our recommendation, not a documented HubSpot step.

6. Rename headers (optional), save and check limits

Renaming headers is optional, because HubSpot lets you map each column to a property during import, so “Email Address” still works. Renaming to the property name, such as “Email”, only speeds up auto-mapping. Some providers do require exact header names such as first_name, so HubSpot’s Excel contact list guide suggests keeping one easy-to-read master copy and renaming headers once, on a copy. Include an Email column; companies need a Name or a Company domain name.

Save as .xlsx, or as UTF-8 CSV if the file contains non-English characters. Then compare the file with the limits on HubSpot’s import file page, which apply over a rolling 24 hours:

LimitFree toolsPaid
File size20 MB512 MB
Imports per day50500
Rows per day500,00010 million
Rows per fileNot given1,048,576

Up to 3 imports can run at once. These figures were published when we checked (page updated November 12, 2026), so confirm them before a large import.

Doing it with an AI coworker

One option is to hand the file to Smalt instead of building helper columns. Upload the lead list, describe the fixes above, and ask for a cleaned copy plus a short note on what it changed. Review that note against the file yourself.

Smalt can also connect to HubSpot. Adding contacts is not an approval-gated step, unlike emails, Slack messages and calendar invites. Review the cleaned workbook first, and only then tell it to add the contacts, or import the file yourself.

What to check before you rely on it

Open the saved file, not the working copy. Confirm there is one sheet, headers in row 1, and no leftover helper columns. A CSV saved from Excel can lose formatting, so reopen it and look at dates and phone numbers.

Know what a matching email does. HubSpot says that when one existing contact matches, the import updates only the properties you mapped, and an import never deletes records. If several existing contacts share the same email, that row errors. If the file has no unique identifier, each row imports as a new contact, which is how a clean list still creates duplicates.

Test with a small batch. Import a handful of rows first and check the records in HubSpot, including how dates and phone numbers displayed.

Spot-check name and phone fixes. Formulas cannot tell whether “Rivera, Ana” is surname first, or which country code a bare ten-digit number needs.

Next steps

Once the contacts are in, build a weekly pipeline report from a HubSpot export in Excel or score leads against your ideal customer profile.

Smalt is an AI coworker that takes jobs like this end to end and hands back the finished file.