ライブスプレッドシートで使える QuickBooks Online invoices
Invoices テーブルを invoices という名前のデータソースとしてシートに追加すると、その19個の列が、関数、ピボットテーブル、グラフで使える名前になります。Sheets は、シートを開くたび、または更新するたびに QuickBooks Online の会社データ から読み取ります。
このテーブルで使える関数
=data.invoices.sum(total) Totalの合計. Invoicesのすべての行について、Total列を合計します。
=data.invoices.sum(total, customer, A2) Customerごとのtotal. A2 にcustomerを入力すると、その1件の合計になります。一覧の隣で下にコピーしてください。
=list.invoices(customer) すべてのcustomer(重複なし). customerの重複しない値を列方向に展開します。上の関数の行ラベルになります。
=data.invoices.sum(total, date, ">=2026-01-01") ある日付以降. Dateが2026年1月1日以降の行のみ対象です。">="、"<"、"<>" などの条件は、一般的なスプレッドシートと同じように使えます。
=data.invoices.count(id, customer, "<>") Customerがある行. Customerが空でない行を数えます。
=data.invoices.avg(balance) Balanceの平均. avg、min、max、count、countd(重複なし)、first も sum と同じ方法で使えます。
このテーブルを使うレポート
=data.invoices.sum(balance, status, "Overdue") 期限超過の売掛金. 支払期日を過ぎて顧客が未払いの全額。Sheets は残高と支払期日から Status 列(Paid、Open、Overdue)を計算します。
=data.invoices.sum(balance, customer, A2, status, "<>Paid") 顧客別の売掛金. =list.invoices(customer) で顧客を A 列に並べ、それぞれの隣に未払い残高を表示します。
=data.invoices.sum(total, date, ">=2026-01-01") 今年の請求額. 1月1日からの請求額の合計。日付を変えれば期間を比較できます。
列
| 列 | 関数での名前 | 型 |
|---|---|---|
| ID | id | テキスト |
| Invoice no. | invoice_no | テキスト |
| Date | date | 日付 |
| Due date | due_date | 日付 |
| Customer | customer | テキスト |
| Customer ID | customer_id | テキスト |
| Total | total | 数値 |
| Balance | balance | 数値 |
| Status | status | テキスト |
| Currency | currency | テキスト |
| Terms | terms | テキスト |
| Terms ID | terms_id | テキスト |
| Location | location | テキスト |
| Location ID | location_id | テキスト |
| Billing e-mail | billing_e_mail | テキスト |
| E-mail status | e_mail_status | テキスト |
| Memo | memo | テキスト |
| Created at | created_at | 日時 |
| Updated at | updated_at | 日時 |
salesのほかのテーブル
invoicesを、リアルタイムで
請求書、支払、顧客、勘定科目表が、関数、ピボットテーブル、グラフから直接読み取れるテーブルになります。エクスポートなしで、数値は常に最新です。