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

ColumnIn formulasType
ProductproductText
VariationvariationText
SKUskuText
CategorycategoryText
PricepriceNumber
Regular priceregular_priceNumber
Sale pricesale_priceNumber
On saleon_saleYes / no
Stock statusstock_statusText
Stock quantitystock_quantityWhole number
Stock valuestock_valueNumber
StatusstatusText
Product IDproduct_idText
IDidText

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.