Microsoft Excel
Use a Microsoft Excel workbook as your source when your data is in OneDrive or SharePoint. Each row in the worksheet creates one document. This page tells you how to set up the workbook, connect it to a workflow and run it.
Set up your workbook
Put your headers in the first row of the worksheet and the data in the rows below it. Portant uses each header as the name of a field.
- Each column needs a header. Portant ignores a column that has no header.
- Portant reads the area of the worksheet that holds data, so start the headers in the first row.
- Each row creates one document, unless you use data grouping to put more than one row into a document.
Add the Excel source to a workflow
- In your workflow, click Add source and select Microsoft Excel.
- If Portant asks for access to your Microsoft account, complete the Microsoft sign-in in the pop-up window. Allow pop-ups from app.portant.co.
- Select the workbook from your OneDrive, or from a file shared with you or stored in SharePoint.
- Select the worksheet to use. If you do not select one, Portant uses the first worksheet in the workbook.
Tip: You can see if Microsoft is connected at Settings > Permissions, where Microsoft shows as Connected.
The fields in the source table
The source table shows one field for each header in the worksheet. It also shows two fields that Portant adds:
| Field | Value |
|---|---|
| Row Number | The number of the row in the worksheet. The first data row is row 2. |
| Timestamp | The date and time of the run. |
Portant sets the field type from the header text. A header that contains "date" or "birthday" becomes a date field. A header that contains "link", "url" or "website" becomes a link field. A header that contains "image", "photo", "picture", "avatar" or "screenshot" becomes an image field. You can change the type of a field in the source table. To add an image from a URL, see image tags.
When you add, remove or rename a column in the workbook, refresh the source so that the source table shows the changes.
Run the workflow
Click the Automate button in the top right of the workflow.
- To process every row, click Start.
- To process some rows only, set the dropdown to Custom range and enter the rows.
Use the row numbers from the worksheet. The first data row is row 2. Use a hyphen for a range (3-5), commas between items (3, 5, 11), and a plus sign for a row and all the rows after it (12+). Enter the items in ascending order.
Note: Auto-create is not available for Microsoft Excel sources. Portant does not run the workflow when a new row is added. To run new rows automatically, use a Google Sheets source with auto-create.
Group rows into one document
To put more than one row into a document, for example the line items of an invoice, use data grouping. Select Group data by on the column that identifies each group. See Microsoft Excel data grouping.
Related
- Microsoft Word templates to fill a Word document with the data from your workbook.
- Microsoft Excel (.xlsx) outputs to make an Excel file as an output.