XERO TO EXCEL
Your first Xero report in Excel.
From nothing to budget vs actual.
A beginner's walkthrough: add XO Report, connect Xero, then build a small budget vs actual sheet that you update next month by changing one date.

What you will build.
One sheet, three formulas.
Nothing is assumed. Each step says why, so you can build the same thing for any account or period afterwards.
AT THE TOP
The inputs
Your company, the budget name and one month-end date. Next month you change only the date.
ONE ROW PER ACCOUNT
Actual and budget
XO.BALANCE brings the actual from Xero, XO.BUDGET the budget.
PLAIN EXCEL
The variance
Actual minus budget, and the percentage. No add-in needed for that part.
Build it in six steps.
About fifteen minutes.
Steps 1 and 2 happen once. Steps 3 to 6 are the report itself.
STEP 1
Add XO Report in Excel
On the Home tab, click Add-ins, type "xo r" and click Add next to XO Report. No search box? Choose More Add-ins and search the Store.
It goes with your Microsoft account, so it works in Excel on Windows, Mac and the web.


STEP 2
Connect to Xero and start the trial
Click XO Report on the Home tab, then Connect to Xero. Sign in to Xero, pick your organisation and allow access. XO Report asks for read-only access: it can never change anything in Xero.
Then click Start Free Trial: 14 days, no credit card. Add more companies later from Settings. More on the connection.



STEP 3
Find your company with XO.ORG
In an empty cell, type
=XO.ORG()and press Enter. It lists your connected companies, with an OrgID and an OrgName column. Every formula points at the OrgID cell, never at a name.See your company? The connection works. Here, a first
XO.BALANCEalready returns the same Sales figure as Xero's Profit and Loss.
XO.ORG lists the connected company; formulas use its org ID. Scroll sideways to see the whole sheet.Demo company data STEP 4
Set the inputs and pull the actuals
On a new sheet, put the inputs at the top: the org ID, the budget name, and the month end, the one date you type. The month start is a formula on it.
List your account codes in column A from row 8, such as 200 for Sales. In C8 type
=XO.BALANCE($C$1, $A8, $C$4, $C$3)and fill it down. Each row returns its account for the month. Always point at date cells: typed dates inside a formula are rejected.The inputs C1 Org ID from =XO.ORG() C2 Budget name Overall Budget C3 Month end 30/09/2026 (the one date you type) C4 Month start =EOMONTH(C3,-1)+1
STEP 5
Add the budget with XO.BUDGET
In D8 type
=XO.BUDGET($C$1, $C$2, $A8, $C$4, $C$3): the same company, account and dates, plus the budget name from C2. Fill it down.Overall Budget is the usual name of a Xero budget; use yours if it differs. Upper or lower case doesn't matter. Xero budgets cover profit and loss accounts only, so a balance sheet account returns 0.

The inputs at the top, the actual in C8, the budget going into D8. Scroll sideways to see the whole sheet.Demo company data STEP 6
Work out the variance
The variance is plain Excel:
=C8-D8in E8, and=IF(D8=0,"-",E8/D8)in F8 for the percentage. Fill them down and format the figures.For revenue, above budget is good; for costs, above budget is bad. Conditional formatting by account type makes that green and red.
Row 8, then fill down C8 Actual =XO.BALANCE($C$1, $A8, $C$4, $C$3) D8 Budget =XO.BUDGET($C$1, $C$2, $A8, $C$4, $C$3) E8 Variance =C8-D8 F8 Var % =IF(D8=0,"-",E8/D8)
Next month: change one date.
Or one company.
Type the new month end in C3 and every actual, budget and variance follows. Change the org ID in C1 and the same sheet shows another company.

Recalculating can reuse figures XO Report already has. After a late invoice or a month-end close, click Refresh all formulas in the pane for the latest from Xero.
Three last touches.
Before you hand it on.
Check one figure
Compare one cell with the same line of Xero's Profit and Loss for the same dates. They should match exactly. If not, the account code in column A is the usual cause.
Freeze the headers
View, Freeze Panes, so the column labels stay visible as the sheet grows.
Protect the formulas
Leave only the input cells unlocked, then Review, Protect Sheet. The next person can change the date but can't break a formula.
Where to go next.
And what it costs.
NEXT REPORT
Build on what you made
Build a Profit and Loss or Balance Sheet report, add the year to date in the budget vs actual guide, or make a whole report follow one date cell with live Xero data in Excel.
PRICING
14 days free first
The trial needs no credit card. After it, Solo is US$9.90 a month for 1 company and Pro US$29.90 a month for up to 10. See all plans.
Questions people ask.
- I already have XO Report. Should I read this or the quick start?
- If you know the basics, the quick start is shorter. This tutorial is for anyone new to live Xero data in Excel: it builds a complete example from scratch.
- What if my Xero organisation doesn't have a budget?
- XO.BUDGET then returns an error, naming the budgets it did find, if any. Add one in Xero under Reports, Budget Manager, Add Budget, or stop at the actuals for now: the variance step is optional on a first go.
- Why does XO.BALANCE need a start and an end date?
- For profit and loss accounts it returns the activity between the two dates. For balance sheet accounts it returns the balance at the end date and ignores the start date. It works out which from the account type in Xero, so one formula shape covers both.
- Can I compare two periods side by side?
- Yes. Add date cells for the second period, such as the year start, and copy the formulas pointing at them: =XO.BALANCE($C$1, $A8, $C$5, $C$3) gives the year to date next to the month. For a whole report, insert a Profit & Loss with comparison periods and tick Show periods side by side.
- How do I cover several companies?
- Change the org ID in C1 to another company from XO.ORG and the whole sheet follows. For several companies at once, give each one its own column or sheet; the consolidation guide shows the pattern. If you later disconnect a company in the account portal, formulas pointing at it show an error until you reconnect or repoint them.
- Does the workbook update when I reopen it?
- Not always. A reopened workbook can show the figures it was saved with until Excel recalculates, and recalculating may reuse figures XO Report already has, so an actual can be up to about 35 minutes behind, and a budget figure longer. Pressing F9 does not guarantee new data from Xero: for the latest, click Refresh all formulas in the XO Report pane.