Shopify draft orders in a live spreadsheet
Add the Draft orders table to a sheet as a data source named draft_orders and its 13 columns become names your formulas, pivot tables and charts use. Sheets reads it from your store each time the sheet opens or refreshes.
Formulas on this table
=data.draft_orders.sum(subtotal) Total subtotal. Adds up the Subtotal column over every row of Draft orders.
=data.draft_orders.sum(subtotal, status, A2) Subtotal per status. With a status in A2, the total for that one. Fill it down next to a list of them.
=list.draft_orders(status) Every status, once. Spills the distinct status values down the column: the row labels for the formula above.
=data.draft_orders.count(id, status, "<>") Rows with a status. Counts the rows whose Status is not empty.
=data.draft_orders.avg(total) Average total. avg, min, max, count, countd (distinct) and first work the same way as sum.
Columns
| Column | In formulas | Type |
|---|---|---|
| ID | id | Text |
| Draft | draft | Text |
| Status | status | Text |
| Created at | created_at | Date and time |
| Subtotal | subtotal | Number |
| Total | total | Number |
| Currency | currency | Text |
| Customer ID | customer_id | Text |
| Customer | customer | Text |
| Invoice sent at | invoice_sent_at | Date and time |
| Completed at | completed_at | Date and time |
| Order ID | order_id | Text |
| Updated at | updated_at | Date and time |
Other sales tables
Your draft orders, live
Orders, products, customers and inventory become live tables. Sales reports, stock lists and dashboards stay current without exporting a CSV, and AI assistants such as Claude can build them for you through MCP.