Skip to content

How to

Drop in your messiest spreadsheet

Stacked headers, merged cells, several tables on one tab, totals rows: say what one row should be, and Mammoth turns the report into a clean table. You check it before anything is saved.

49 seconds, real app, made-up sales report. Follow along with the same file: Messy store report (Excel). Download the video (MP4)

The steps

  1. 1

    Upload the file

    In Data, choose New dataset and upload your spreadsheet. If it can be read more than one way, Mammoth asks rather than guessing. Choose how to read it.

  2. 2

    See what you're working with

    On the left is your file as it is. This one has a title and notes, a header in two rows (Units sold and Revenue, each over Jul, Aug, Sep), regions in merged cells, a subtotal after each region, a total, and a second table of store managers further down.

    The uploaded report: a title, a two-row header, regions in merged cells, stores and a bold subtotal row after each region
  3. 3

    Say what one row should be

    Mammoth suggests a way to read each table it found. Choose one, or type your own. Here: one row per store and month: region, store, month, units sold and revenue.

    The request box, with two suggestions: one row per store and month, with units sold and revenue; and keep only store manager names and staff counts
  4. 4

    Check the result

    On the right is what you'll get: 24 rows, 8 stores × 3 months, with the region on every row. Units and revenue are numbers. The subtotals, the total and the note are left out. If it's not right, change your words and run it again.

    The result: 5 columns and 24 rows, Region, Store, Month and Units sold, such as East, Eastbrook, Aug, 2393
  5. 5

    Save it

    Choose Looks right. Mammoth shows each column and what it was read as. Choose Create dataset. Check one number against the file: here revenue adds up to 180,130, the report's total.

    What Mammoth read: Region, Store and Month as text, Units sold and Revenue as numbers, 24 rows and 5 columns

Ways to describe the table you want

Say what one row is, then list the columns.

  • One row per store and month: region, store, month, units sold and revenue
  • Keep only the store managers table
  • One row per product, skip the totals
  • Stack the sheet's blocks into one table with a Region column

Want both tables? Read the file once for each. Each becomes its own dataset.

If it doesn’t look right

A subtotal or total row came through
Say so in your request, for example “leave out subtotal and total rows”, and run it again. Then compare a total with the file.
The region is blank on some rows
That's a merged cell that wasn't carried down. Ask for it by name: “fill the region on every row”.
A number came in as text
Check the file for symbols or notes in the cells. After saving, change the column's type to Number in Explore.

Next quarter's report

How the file was read is saved with the dataset as its recipe. Add next quarter's report with Add data and it's read the same way. Check the row count.
Uploading files in the docs

Try it on your own messiest file.

Upload it, say what one row should be, and check the result before you save.

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