> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morada.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Clean up a messy leads spreadsheet

> Upload the spreadsheet as it is and get back a clean file, with standardized columns and duplicates flagged.

**You need:** a leads spreadsheet (.xlsx or .csv) · **Last updated:** August 17, 2026

<Warning>
  A leads spreadsheet carries your customers' personal data (name, phone, email). It is handled under the [privacy policy](/morada-os/en/privacy-policy) and never used to train third-party AI models. Upload only data your company collected lawfully.
</Warning>

## What you'll get

A clean Excel file: columns with the same names, phone numbers and dates in the same format, duplicates flagged, and the records without a valid contact set aside. Along with it comes a summary of what changed, so you know what happened to your list before you use it.

<img src="https://mintcdn.com/moradaai-f7bfc739/Jw7bl2COfA6DU5qM/images/morada-os/casos-de-uso/organize-uma-planilha-de-leads.png?fit=max&auto=format&n=Jw7bl2COfA6DU5qM&q=85&s=3de7aa133a16a9a9bc969c5df3e5ff0c" alt="Clean leads spreadsheet returned by Morada OS as an Excel file with tabs for duplicates and invalid contacts" width="1280" height="577" data-path="images/morada-os/casos-de-uso/organize-uma-planilha-de-leads.png" />

***

## Step by step

<Steps>
  <Step title="Upload the spreadsheet to the chat">
    The leads spreadsheet from the trade show came from three different sources: one has "mobile", another has "phone", half the dates are written one way and the rest another. Before this goes anywhere, you open Morada OS, drag the file into the chat, and type:

    Don't have one handy? Copy the sample below (fictional data), paste it into Excel and save it as a spreadsheet to try it out. This is the mess we mean:

    ```csv wrap theme={null}
    nome,Telefone,EMAIL,origem
    Maria Souza,62 99911-2233,maria.souza@gmail.com,Instagram
    maria souza,(62)99911-2233,,instagram
    Ana Clara,+55 62 98123-4567,ana.clara@empresa.com.br,Indicação
    Ana Clara Mendes,62981234567,ana.clara@empresa.com.br,indicacao
    Roberto,,roberto@,Feirão
    ```
  </Step>

  <Step title="Paste the request and adjust the brackets">
    With the file attached, paste the request below and adjust whatever doesn't fit your case.

    ```text wrap theme={null}
    Clean up the leads spreadsheet I uploaded. It came from different sources and it's a mess. Standardize the columns to name, phone, email, source, and contact date, make the phone and date formats consistent, flag the duplicate records, and set aside the ones without a valid contact. Give me back a clean Excel file and a summary of what changed.
    ```
  </Step>

  <Step title="Get the clean file back">
    The assistant returns the file ready to download, usually with the duplicates, the invalid contacts, and the summary on separate tabs, and it explains what changed: how many rows were standardized, how many duplicates it found, and how many records ended up without a valid contact. Read the summary before the file. If the duplicate count comes back far above what you expected, the rule probably isn't what you had in mind, and you just have to say which column defines a repeated lead. When a column is empty in the original, it says so instead of filling in a guess.
  </Step>
</Steps>

***

## Keep the conversation going

> "Treat records as duplicates only when the phone number matches, ignoring the name."

> "Split the leads by source and tell me how many came from each one."

> "Also give me a version with only the leads that have a valid email."

***

## Tips and common problems

* **Say which columns you want at the end.** Without that, the assistant picks for you and may keep names your team doesn't use.
* **Define what counts as a duplicate.** Same phone, same email, or same name lead to very different results.
* **Check the file before importing it.** The spreadsheet comes back clean, but the decision to delete or merge records is still yours.

***

## Similar cases

* [Analyze a development's feasibility from the spreadsheet](/morada-os/en/use-cases/feasibility-analysis). Also starts from a spreadsheet uploaded to the chat.
* [Turn a long report into a summary for the board](/morada-os/en/use-cases/summarize-a-report). Also works on a file of yours.
* [Connect your CRM](/morada-os/en/connectors/hubspot) and the assistant reads the leads straight from there, no spreadsheet in between.
