XERO PROFIT AND LOSS
Xero Profit & Loss in Excel.
Every month, one Refresh.
Insert the Profit and Loss (the P&L, or income statement) from Xero as an Excel table, compare months side by side, and refresh it next month instead of exporting again.
14-day free trial. No credit card.

Where is the Profit and Loss in Xero?
- Go to Reporting, then All reports, and open Profit and Loss.
- Set the dates and click Update.
- Click Export and choose Microsoft Excel (or PDF, or Google Sheets).
Amounts showing 0.00 in Excel? The file opens in Protected View: click Enable Editing and they fill in. Xero's own guide: Export or print a report (Xero Central).
The clicks in Xero
- 1Reporting
- 2All reports
- 3Profit and Loss
- 4Set the dates, then Update
- 5Export, then Microsoft Excel
Keep it live in Excel instead.
Set it up once.
XO Report brings the report into Excel as a table that stays linked to Xero. Next month you change the date and click Refresh.
STEP 1
Add XO Report in Excel
On the Home tab, click Add-ins, type "xo r" in the search box, then click Add next to XO Report. No search box? Choose More Add-ins and search the Store. It works in Excel on Windows, Mac and the web.


STEP 2
Connect to Xero
Click XO Report on the Home tab, then Connect to Xero, and choose your organisation. Access is read-only: nothing in Xero can be changed from Excel.


STEP 3
Insert the Profit & Loss
On the Tables tab, pick Profit & Loss, choose the dates (a preset such as Last Month, dates in cells, or fixed dates) and click Insert. It lands on a new sheet as an Excel table: OrgID, OrgName, Section, AccountCode, Account and Amount, in the sections of your Xero report layout.
Months side by side.
Ready to pivot.
Turn on Compare when you insert and add earlier months, quarters or years. Each period comes back as its own row with a Date column, or side by side in its own column.

Rows or columns. One row per account per period, with a Date column, ready for a pivot table or SUMIFS. Or tick Show periods side by side to give each period its own column, the way Xero shows them.
Departments and regions. Filter by up to two tracking categories, such as one region or one department.
Cash or accrual. Accrual by default; Cash Basis shows only paid transactions. Costs show as negative numbers unless you switch that off.
Just the bottom line?
Use XO.PROFIT.
For a dashboard tile or a month-by-month grid, one formula per cell does it. Use the inserted report when you want every line.

=XO.PROFIT(org, start, end) returns net profit: positive for a profit, negative for a loss. The period can be up to a year (365 days), and two optional tracking categories narrow it to one region or department.
Need one line rather than the bottom line? =XO.BALANCE returns an account's activity between two date cells, such as Sales for the month. Lock the org cell ($B$1) and fill the formula across the months.
Next month?
Refresh, not export.
With a preset such as Last Month, Refresh moves the dates on by itself and pulls the new figures from Xero.

Same place, new figures. Refresh rewrites the table where it is, so formulas pointing at it keep working. Refresh your PivotTables afterwards.
Late journals included. Corrections and late invoices posted in Xero are in the next Refresh, before the board pack goes out.
Your formatting stays. Bold, colours and the formula columns you add to the right of the table survive a Refresh.
Export it, or keep it live?
Both start in Xero.
Xero's export is free and fine for a one-off. It is a copy of the day you downloaded it.

An export from Xero
- Export, enable editing, delete the title rows, paste into your pack. Every month.
- A renamed or new account breaks the lookups in your pack without warning.
- Late journals and corrections stay out until you export again.
- Two readers of the same pack can have different numbers if one re-exported.
The same report with XO Report
- Inserted once as a table, refreshed for each new month.
- New accounts arrive as new rows.
- Late journals are in the next Refresh.
- Several companies in one table, each row naming its company.
Questions people ask.
- What is the difference between the inserted Profit & Loss and the XO.PROFIT formula?
- The inserted report brings in every line of the Profit and Loss as in Xero: revenue, cost of sales, expenses, subtotals and net profit. XO.PROFIT returns one number, the net profit for the dates you give it. Use the report for the full statement, and the formula for dashboard cells and month-by-month grids.
- Does the Profit & Loss in Excel refresh live?
- Yes. Both surfaces refresh: the inserted report re-pulls when you click Refresh in the XO Report pane, and XO.PROFIT formulas re-evaluate on workbook recalculation. Repeated recalculations are served from cache rather than calling the Xero API on every pass: a short in-workbook cache (about five minutes) backed by a server-side report cache (up to thirty minutes) absorbs the repeats. Click Refresh to force live data.
- Can I put several Xero companies in one Profit & Loss?
- Yes. Tick several companies when you insert, and every row carries its OrgID and OrgName, ready for a PivotTable with companies in columns. Or give each company its own column of XO.BALANCE or XO.PROFIT formulas and add a group total.
- Does it work in Excel for Mac, Excel on the web and Google Sheets?
- Yes. The same add-in runs in Excel on Windows, Mac and the web. In Google Sheets you get the Profit & Loss and the other reports from a sidebar; the formulas, such as XO.PROFIT, are Excel only.
- What about foreign currencies?
- The Profit and Loss comes in the organisation's base currency, as in Xero, which converts foreign-currency transactions. XO.PROFIT returns net profit in the base currency too.
- Can I pivot or chart the Profit & Loss once it is in Excel?
- Yes. It lands as an Excel table, so you can pivot it, chart it or point your board pack at it. Refresh rewrites the same table, so anything built on it picks up the new figures; refresh PivotTables after the data.