Xero credit notes in a live spreadsheet

Add the Credit notes table to a sheet as a data source named credit_notes and its 14 columns become names your formulas, pivot tables and charts use. Sheets reads it from your Xero organisation each time the sheet opens or refreshes.

Formulas on this table

=data.credit_notes.sum(subtotal)
Total subtotal. Adds up the Subtotal column over every row of Credit notes.
=data.credit_notes.sum(subtotal, type, A2)
Subtotal per type. With a type in A2, the total for that one. Fill it down next to a list of them.
=list.credit_notes(type)
Every type, once. Spills the distinct type values down the column: the row labels for the formula above.
=data.credit_notes.sum(subtotal, date, ">=2026-01-01")
Since a date. Only rows whose Date is on or after 1 January 2026. Criteria such as ">=", "<" and "<>" work as in any spreadsheet.
=data.credit_notes.count(id, type, "<>")
Rows with a type. Counts the rows whose Type is not empty.
=data.credit_notes.avg(tax)
Average tax. avg, min, max, count, countd (distinct) and first work the same way as sum.

Columns

ColumnIn formulasType
IDidText
Credit note no.credit_note_noText
TypetypeText
ReferencereferenceText
DatedateDate
ContactcontactText
Contact IDcontact_idText
SubtotalsubtotalNumber
TaxtaxNumber
TotaltotalNumber
Remaining creditremaining_creditNumber
StatusstatusText
CurrencycurrencyText
Updated atupdated_atDate and time

Other sales tables

Your credit notes, live

Invoices, bills, bank transactions and your monthly profit and loss become tables that formulas, pivots and charts read directly, in your base currency.