ライブスプレッドシートで使える FreshBooks invoices
Invoices テーブルを invoices という名前のデータソースとしてシートに追加すると、その20個の列が、関数、ピボットテーブル、グラフで使える名前になります。Sheets は、シートを開くたび、または更新するたびに お使いの FreshBooks のビジネス から読み取ります。
このテーブルで使える関数
=data.invoices.sum(total) Totalの合計. Invoicesのすべての行について、Total列を合計します。
=data.invoices.sum(total, payment_status, A2) Payment statusごとのtotal. A2 にpayment statusを入力すると、その1件の合計になります。一覧の隣で下にコピーしてください。
=list.invoices(payment_status) すべてのpayment status(重複なし). payment statusの重複しない値を列方向に展開します。上の関数の行ラベルになります。
=data.invoices.sum(total, date, ">=2026-01-01") ある日付以降. Dateが2026年1月1日以降の行のみ対象です。">="、"<"、"<>" などの条件は、一般的なスプレッドシートと同じように使えます。
=data.invoices.count(id, payment_status, "<>") Payment statusがある行. Payment statusが空でない行を数えます。
=data.invoices.avg(outstanding) Outstandingの平均. avg、min、max、count、countd(重複なし)、first も sum と同じ方法で使えます。
このテーブルを使うレポート
=data.invoices.sum(outstanding, payment_status, "Overdue") 期日を過ぎた売掛金. 期日を過ぎて顧客が未払いの金額すべて。Sheets は未回収額と期日から Payment status 列(Draft、Open、Overdue、Paid)を計算します。
=data.invoices.sum(outstanding, ageing, A2) 売掛金の経過期間. 会計で使う区分(Current、1-30、31-60、61-90、Over 90)ごとの未回収の請求書。A2 に区分名を入力します。
=data.invoices.sum(outstanding, client, A2, payment_status, "<>Paid") 顧客別の売掛金. =list.invoices(client) で A 列に顧客を並べ、その横に各顧客の未払い額を表示します。
=data.invoices.sum(total, date, ">=2026-01-01", payment_status, "<>Draft") 今年の請求額. 1 月 1 日以降の請求額の合計(下書きを除く)。日付を変えて期間を比較できます。
列
| 列 | 関数での名前 | 型 |
|---|---|---|
| ID | id | テキスト |
| Invoice no. | invoice_no | テキスト |
| PO number | po_number | テキスト |
| Date | date | 日付 |
| Due date | due_date | 日付 |
| Client | client | テキスト |
| Client ID | client_id | テキスト |
| Total | total | 数値 |
| Outstanding | outstanding | 数値 |
| Paid | paid | 数値 |
| Discount | discount | 数値 |
| Payment status | payment_status | テキスト |
| Days overdue | days_overdue | 整数 |
| Ageing | ageing | テキスト |
| Status | status | テキスト |
| Paid status | paid_status | テキスト |
| Paid on | paid_on | 日付 |
| Currency | currency | テキスト |
| Archived | archived | はい / いいえ |
| Updated at | updated_at | 日時 |