Skip to main content

Free for 14 days · from $9.90/mo

See plans

XERO TO EXCEL

Xero Excel formulas cheatsheet.
Every function, one page.

Each XO Report function with its arguments, what it returns and an example to copy. Keep this page open, or take the free PDF.

Excel with =XO.BALANCE in the formula bar, a current month, last month and variance table of expense accounts, and the XO Report Functions tab listing XO.BALANCE, XO.BUDGET and XO.PROFIT
XO.BALANCE at work, with the Functions tab of the XO Report pane beside it. Scroll sideways to see the whole sheet.

Figures.
One number per cell.

Balances, net profit and budgets for any period. These are the formulas most reports are built on.

XO.BALANCE

XO.BALANCE(org_id, account, start_date, end_date, [category1], [option1], [category2], [option2], [basis])

Single account balance. P&L accounts return activity between dates (up to 365 days); Balance Sheet accounts return the balance as of end_date.

=XO.BALANCE(A2, "4000", C1, D1)

Revenue for account 4000 in the period defined by cells C1 (start) and D1 (end). P&L signs match Xero; Balance Sheet normal balances are positive.

XO.BALANCE in detail →

XO.PROFIT

XO.PROFIT(org_id, start_date, end_date, [category1], [option1], [category2], [option2], [basis])

Net income from the P&L report for the date range. Positive = profit, negative = loss, zero = break-even. Date range up to 365 days.

=XO.PROFIT(A2, C1, D1)

Single-cell bottom line, ideal for dashboard KPIs. Add tracking category + option pairs to slice by region or department.

XO.PROFIT in detail →

XO.BUDGET

XO.BUDGET(org_id, budget_name, account, start_date, end_date)

Budget amount summed for the account over the date range. Returns 0 when no budget data exists for the period.

=XO.BUDGET(A2, "Overall Budget", "4000", C1, D1)

Pair with =XO.BALANCE to build budget-vs-actual variance tables. Xero budgets cover P&L accounts only.

XO.BUDGET in detail →

Lists.
A table that spills.

Type one formula and the list spills into the cells below, with a header row. Leave room under it.

XO.ORG

XO.ORG()

Table of all connected organizations (Org ID + Org Name).

=XO.ORG()

Enter in A1 to spill a two-column table. Reference A2 in other formulas to use the first org.

XO.ORG in detail →

XO.COA

XO.COA(org_id, [include_archived])

12-column Chart of Accounts table for the organization (Active accounts by default).

=XO.COA(A2)

Active accounts for the org in A2. Pass 1 as the second argument to include archived accounts.

XO.COA in detail →

XO.CONTACTS

XO.CONTACTS(org_id, [include_archived])

6-column contacts table without phone numbers (Active contacts by default).

=XO.CONTACTS(A2)

Active customers and suppliers for the org in A2. Pass 1 to include archived contacts.

XO.CONTACTS in detail →

XO.TRACKING

XO.TRACKING(org_id, [include_archived])

6-column table of tracking categories and their options (Active by default).

=XO.TRACKING(A2)

One row per option, useful for cross-checking your tracking taxonomy before filtering balances.

XO.TRACKING in detail →

XO.TAXRATES

XO.TAXRATES(org_id, [include_deleted])

6-column tax-rate table (Active rates by default).

=XO.TAXRATES(A2)

All Active tax rates with their type code and percentage. Pass 1 to include deleted rates.

XO.TAXRATES in detail →

XO.CURRENCIES

XO.CURRENCIES(org_id)

4-column currency table for multi-currency orgs.

=XO.CURRENCIES(A2)

Every currency code enabled on the org, useful for FX conversion lookups.

XO.CURRENCIES in detail →

Lookups.
One detail by code.

The name, type or status of an account or an item, for labels next to your figures.

XO.LACCOUNT

XO.LACCOUNT(org_id, account_code, property)

A single property of a GL account (0 = name, 1 = type, 2 = class, 3 = status, 4 = description, 5 = taxType).

=XO.LACCOUNT(A2, "4000", 0)

Looks up the account name for code 4000. Pass 2 to get the account class (ASSET / LIABILITY / REVENUE / EXPENSE / EQUITY).

XO.LACCOUNT in detail →

XO.LITEM

XO.LITEM(org_id, item_code, property)

A single property of an inventory item (0 = name, 1 = description, 2 = price, 3 = status).

=XO.LITEM(A2, "WIDGET-001", 0)

Item-code match is case-insensitive. Pass 2 to get the sales unit price, or purchase unit price when absent.

XO.LITEM in detail →

Three habits that save time.
For every formula.

Start with XO.ORG. It lists your connected companies with their org IDs. Point every formula at an org ID cell, so switching company means changing one cell.

Dates in cells. Put start and end dates in cells and reference them. Typed dates inside a formula are rejected, and cells let you move the whole sheet to a new month at once.

Refresh for the latest. Formulas recalculate when an input changes, and may reuse recent figures. Click Refresh all formulas in the pane after a change in Xero.

One formula, a whole report.
Fill it across and down.

With the dates in cells, one XO.BALANCE fills every month and every account; each column reads its own dates.

A monthly report filled with one XO.BALANCE formula; K12 shows =XO.BALANCE($C$2, $A12, K$7, K$8) with boxes on 1 Apr 2026 and 30 Apr 2026, the dates of its own column
The same formula in every cell, each column with its own dates. Scroll sideways to see the whole sheet.Demo company data

Build this report step by step →

Questions people ask.

What are the XO Report functions?
Custom Excel functions, all starting with XO., that read live data from Xero: account balances, net profit, budgets, the chart of accounts, contacts, tracking categories, tax rates, currencies and item details. They behave like any Excel formula: they recalculate when their inputs change, lists spill into the cells below, and they work in Excel on Windows, Mac and the web.
Where do these formulas come from?
From the XO Report add-in. In Excel, click Add-ins on the Home tab, type "xo r" and click Add, then connect to Xero and start the free trial. The functions work in any workbook while the add-in is loaded.
Do the formulas work in Google Sheets?
No, the formulas are Excel only. In Google Sheets, XO Report inserts the same Xero reports and tables from a sidebar.
Why do my dates have to be in cells?
A date typed inside a formula, such as "01/02/2026", means different days in different countries, so XO Report rejects it. Put the date in a cell and point the formula at that cell.
Is the PDF the same as this page?
Yes. The page and the PDF are made from the same list, so they always match. The PDF is handy to print or share; this page links each function to its full reference.
What if I need more than the cheatsheet shows?
Each function has its own reference page with every argument, what it returns, edge cases such as XO.BALANCE on balance sheet accounts, and worked examples. Follow the link on its card.
Does the cheatsheet cost anything?
No. The page and the PDF are free, with no email needed. XO Report itself has a 14-day free trial, and plans start at US$9.90 a month.

Take the cheatsheet with you

The same formulas on one printable page, to pin next to your screen or share with your team.

Download the cheatsheet (PDF)

Try the formulas in your own workbook.

Add XO Report in Excel and pull live Xero data with any formula above. 14-day free trial, no credit card.

Free trial · No credit card · Cancel anytime