ライブスプレッドシートで使える WooCommerce orders

Orders テーブルを orders という名前のデータソースとしてシートに追加すると、その31個の列が、関数、ピボットテーブル、グラフで使える名前になります。Sheets は、シートを開くたび、または更新するたびに WooCommerce ストア から読み取ります。

このテーブルで使える関数

=data.orders.sum(total)
Totalの合計. Ordersのすべての行について、Total列を合計します。
=data.orders.sum(total, status, A2)
Statusごとのtotal. A2 にstatusを入力すると、その1件の合計になります。一覧の隣で下にコピーしてください。
=list.orders(status)
すべてのstatus(重複なし). statusの重複しない値を列方向に展開します。上の関数の行ラベルになります。
=data.orders.sum(total, date, ">=2026-01-01")
ある日付以降. Dateが2026年1月1日以降の行のみ対象です。">="、"<"、"<>" などの条件は、一般的なスプレッドシートと同じように使えます。
=data.orders.count(date, status, "<>")
Statusがある行. Statusが空でない行を数えます。
=data.orders.avg(items_subtotal)
Items subtotalの平均. avg、min、max、count、countd(重複なし)、first も sum と同じ方法で使えます。

このテーブルを使うレポート

=data.orders.sum(net_total, counts_as_sale, TRUE)
純売上. 売上として数える注文(処理中、保留中、完了、返金済み)の返金後の合計。
=data.orders.sum(net_total, month, A2, counts_as_sale, TRUE)
月別の純売上. A 列に =list.orders(month) で月を並べ、その横に各月の純売上を出します。
=data.orders.avg(total, counts_as_sale, TRUE)
平均注文額. 売上として数える注文の平均注文額。
=data.orders.sum(net_total, country, A2, counts_as_sale, TRUE)
国別の売上. A 列の請求先の国ごとの純売上。
=data.orders.count(id, status, A2)
ステータス別の注文数. 支払い待ち、処理中、保留中、完了などの注文がそれぞれ何件あるか。A2 にステータスを入れます。
=data.orders.sum(discount, counts_as_sale, TRUE)
値引き額. 売上として数える注文でのクーポンと値引きの金額。

列

列関数での名前型
Datedate日付
Monthmonthテキスト
Order numberorder_numberテキスト
Statusstatusテキスト
Counts as salecounts_as_saleはい / いいえ
Totaltotal数値
Items subtotalitems_subtotal数値
Discountdiscount数値
Shippingshipping数値
Taxtax数値
Refundedrefunded数値
Net totalnet_total数値
Itemsitems整数
Currencycurrencyテキスト
Customercustomerテキスト
E-maile_mailテキスト
Companycompanyテキスト
Countrycountryテキスト
Statestateテキスト
Citycityテキスト
Postcodepostcodeテキスト
Shipping countryshipping_countryテキスト
Guestguestはい / いいえ
Customer IDcustomer_idテキスト
Payment methodpayment_methodテキスト
Shipping methodshipping_methodテキスト
Couponscouponsテキスト
Created viacreated_viaテキスト
Paid onpaid_on日付
Completed oncompleted_on日付
IDidテキスト

salesのほかのテーブル

ordersを、リアルタイムで

注文、返金、商品、顧客、クーポンが WordPress 管理画面の中でライブ テーブルになります。CSV を書き出さなくても、売上レポートとダッシュボードは常に最新です。