WooCommerce product variations in a live spreadsheet
Add the Product variations table to a sheet as a data source named product_variations and its 14 columns become names your formulas, pivot tables and charts use. Sheets reads it from your WooCommerce store each time the sheet opens or refreshes.
Formulas on this table
=data.product_variations.sum(price) Total price. Adds up the Price column over every row of Product variations.
=data.product_variations.sum(price, product, A2) Price per product. With a product in A2, the total for that one. Fill it down next to a list of them.
=list.product_variations(product) Every product, once. Spills the distinct product values down the column: the row labels for the formula above.
=data.product_variations.count(product, product, "<>") Rows with a product. Counts the rows whose Product is not empty.
=data.product_variations.avg(regular_price) Average regular price. avg, min, max, count, countd (distinct) and first work the same way as sum.
Columns
| Column | In formulas | Type |
|---|---|---|
| Product | product | Text |
| Variation | variation | Text |
| SKU | sku | Text |
| Category | category | Text |
| Price | price | Number |
| Regular price | regular_price | Number |
| Sale price | sale_price | Number |
| On sale | on_sale | Yes / no |
| Stock status | stock_status | Text |
| Stock quantity | stock_quantity | Whole number |
| Stock value | stock_value | Number |
| Status | status | Text |
| Product ID | product_id | Text |
| ID | id | Text |
Other catalog tables
Your product variations, live
Orders, refunds, products, customers and coupons become live tables inside your WordPress admin. Sales reports and dashboards stay current without exporting a CSV.