Skip to content

How to

Describe the change, skip the formula

You don't need the right formula to fix a column. Open the Transform window, say what you want, and check the result before it's applied. The step stays, so next month's file gets it too.

63 seconds, real app, made-up contacts. Follow along with the same two: October contacts (CSV) and November contacts (CSV). Download the video (MP4)

The steps

  1. 1

    Open your file in Explore

    In Data, choose New dataset and upload your file. Select it and choose Explore. Here, a contacts list with names in one column, Full name.

  2. 2

    Say what you want

    Choose the + button to open the Transform window, then type the change in plain words: split name into first and last. Mammoth suggests the tool for the job. Press Enter.

    The Transform window with “split name into first and last” typed in the box, and AI SQL Query suggested underneath
  3. 3

    Generate it and check the preview

    Your words carry over into the step. Choose Generate SQL. A preview shows the result before anything changes: First name and Last name, next to Full name.

    A preview of eight contacts with new Last name and First name columns, such as Maya Lindqvist split into Maya and Lindqvist
  4. 4

    Read what it understood

    Under the query, Mammoth says in plain words what it will do. You don't have to read the SQL, but it's there to check or edit. If it's not what you meant, change your words and generate again.

    The generated query, and under it: Understood as, the query adds separate first-name and last-name columns derived from Full name while keeping all existing rows and columns
  5. 5

    Apply it

    Choose Apply. The change is saved as a step in the pipeline, labelled with your words. You can edit or remove it later, and the original Full name column stays.

    The pipeline with one AI SQL Query step labelled split name into first and last, and the table with Full name, Last name and First name
  6. 6

    Add next month's file

    When the next file arrives, open the dataset and choose Add data. The same step runs on the new rows, so they come out split too.

    Eleven contacts after November was added; the three new ones, Nina Petrova, Samuel Adeyemi and Chloe Martin, are split into first and last name too

Changes you can describe

Name the column and say what the result should look like.

  • Split name into first and last
  • Make every email lowercase and remove spaces
  • Add a column with the order month from the order date
  • Keep only rows where the plan is Team or Pro

One change per request is easiest to check. Add the next as its own step.

If it doesn’t look right

The preview isn't what you meant
Don't apply it. Reword the request, more specifically if you can, and generate again.
Some names have three parts
Say how to handle them, for example “first word is the first name, the rest is the last name”, and check those rows in the preview.
You'd rather pick the tool yourself
Every tool in the Transform window is also listed by category, such as Date, Numeric & Text, if you know which one you want.

Every file after

Each step you add, typed or picked, runs again whenever data is added to the dataset, in the same order. Build the clean-up once and reuse it every month.
AI SQL Query in the docs

Try it on your own file.

Open the Transform window, say what you want, check the preview, apply.

  • ✓ 14-day Pro trial
  • ✓ No credit card
  • ✓ Viewers always free