Import some or all sheets from an Excel workbook
When you upload an Excel workbook with several sheets, Mammoth lets you choose which sheets become datasets and how each is read. The dataset's panel in the Data Library shows "This file has multiple sheets to be extracted." with an Extract sheets button. For other files that read wrongly, see Fix how Mammoth reads a messy file.
Pick, read and save the sheets
- Click Extract sheets. Under Sheets, tick the sheets to include. Mammoth reads each sheet when the window opens and shows how many tables it found (for example, "Reads as 2 tables").
- Click a sheet to see its Source next to the dataset it makes. A sheet is Read automatically by default.
- To change how a sheet is read, click Say how to read and the sheet name (for example, Say how to read Q1). Describe it, for example "row 3 is the header" or "rows 1 to 3 are a table", and click Run this instruction. Back to automatic read undoes your read.
- When tables share the same columns, Mammoth groups them: "Combining adds a Source column to tell them apart." Tick two or more and click Combine (for example, Combine 3 datasets), or keep them Separate.
- Click Looks right. The save step lists the Datasets to create with their Cols and Rows.
- Untick any you don't want, rename them, and click Save (for example, Save 3 datasets).
One recipe produces all the datasets, and every run updates them together.
Replace the workbook or add sheets to a watched folder
- Replace this file: drop or choose another workbook (.xlsx, .xlsm, .xls or .csv) to rebuild the recipe from it. If you already edited reads, renamed sheets or changed which datasets to save, Mammoth warns Replacing loses your edits, with Keep this file and Replace anyway.
- When a later file has different sheets, the window says "This file has different sheets from the last one." and names the sheets that are new or gone.
- When the workbook was uploaded to a watched folder, the save button reads, for example, Add 3 sheets to Monthly sales: "They go in as new batches, the way any file added to this folder does."
Related
- Fix how Mammoth reads a messy file: recipes, dates and delimiters.
- Upload CSV, Excel and other files: upload the workbook.
- Prepare files for a clean upload: what an Excel import keeps.
- Batches: see and fix what arrived: sheets added to a watched folder arrive as batches.
Was this page helpful?
Something wrong? support@mammoth.io