A financial dashboard in Excel fits on one sheet with eight KPIs: sales, gross margin, EBITDA, profit, break-even point, cash, debtor days and creditor days. Each one shows the year to date, the same period last year and the change. The figures come from the trial balance your accounting software exports, grouped by the accounts of the Spanish chart of accounts. Below you will find the template, the formulas and the account map.
Which KPIs should a financial dashboard include?
Just enough to answer four questions in a minute: are you selling more, are you earning more, do you have cash, and are you being paid on time. Eight is plenty for a small business. More KPIs do not give you more control; they give you a sheet nobody reads.
| KPI | What it tells you | How it is calculated |
|---|---|---|
| Sales | Whether you sell more or less than last year | Net turnover (subgroup 70) |
| Gross margin | What is left from each sale after what you buy in | Sales minus supplies (subgroups 60 and 61) |
| EBITDA | Whether the business makes money before depreciation, interest and tax | Gross margin plus other operating income, minus staff and other operating expenses |
| Profit before tax | What you really earn | All income minus all expenses, excluding corporate income tax |
| Break-even point | How much you need to sell not to lose money | Fixed costs divided by the contribution margin ratio |
| Cash | The money available at month end | Balance of subgroup 57 |
| Debtor days | How long your customers take to pay you | Customer balance without VAT divided by sales, times the days in the period |
| Creditor days | How long you take to pay | Supplier and creditor balance divided by purchases and external services, times the days in the period |
A few Spanish terms first. The trial balance is the balance de sumas y saldos. The Spanish chart of accounts is the General Accounting Plan (Plan General de Contabilidad, PGC), and most small companies use its version for SMEs (PGC de pymes). Net turnover is the importe neto de la cifra de negocios.
Two warnings before going on.
EBITDA is not a PGC line item. Neither the General Accounting Plan nor the SME version defines it or includes it in their annual accounts formats, so each company calculates it its own way. Write down in the sheet which items you include and do not change the formula from one year to the next. The SME plan applies the same idea to annual accounts: "No podrá modificarse la estructura de un ejercicio a otro" (the structure may not be changed from one year to the next), except in exceptional cases (part three, rule 4).
The break-even point means deciding which costs are fixed and which are variable, and the accounts do not tell you that. You decide it once, account by account, in the "Map" sheet described below.
Which PGC accounts feed each figure?
The SME plan (Royal Decree 1515/2007) includes, in its third part, the profit and loss format with the account numbers that go into each line. That is the mapping you need. Accounts in brackets are deducted.
| Line in the SME profit and loss format | Accounts |
|---|---|
| 1. Net turnover (importe neto de la cifra de negocios) | 700, 701, 702, 703, 704, 705, (706), (708), (709) |
| 4. Supplies (aprovisionamientos) | (600), (601), (602), 606, (607), 608, 609, 61*, plus inventory impairment (6931), (6932), (6933), 7931, 7932, 7933 |
| 5. Other operating income | 740, 747, 75 |
| 6. Staff costs | (64) |
| 7. Other operating expenses | (62), (631), (634), 636, 639, (65), (694), (695), 794, 7954 |
| 8. Depreciation and amortisation | (68) |
| 13. Finance costs | (660), (661), (662), (664), (665), (669) |
| 17. Corporate income tax | (6300), 6301, (633), 638 |
If your company uses the full PGC (Royal Decree 1514/2007), its abridged profit and loss format uses the same accounts for sales, supplies, other operating expenses and depreciation. For staff costs it adds 7950 and 7957.
For the balance sheet you only need three blocks, again taken from the SME format:
- Trade receivables from customers: accounts 430 to 436, minus 437 and the impairment accounts 490 and 493.
- Suppliers and creditors: suppliers in accounts 400, 401, 403, 404, 405 and (406), and sundry creditors in subgroup 41.
- Cash and cash equivalents: subgroup 57 (cash, banks and account 576, highly liquid short-term investments).
Watch out for VAT. Net turnover excludes it: under rule 9 of part three, it is calculated by deducting discounts from sales "y el del impuesto sobre el valor añadido" (and VAT). Output VAT, however, goes through account 477 against the customer accounts, so the customer balance does include it. The same happens with suppliers: input VAT in account 472 is posted against their accounts (part five of the SME plan). That is why you should strip VAT out of the balances before working out debtor and creditor days.
How do you build the template in Excel?
With three sheets, each doing one job.
"Data" sheet: the trial balance as it comes
Export the trial balance from your software from 1 January to the last day of the month, with every account at full detail, and paste it under what you already have. You need these columns:
| Column | Content | Example |
|---|---|---|
| A: Period | Closing month, entered as text | 2026-09 |
| B: Account | Account number, as text | 62100001 |
| C: Name | Account description | Shop rent |
| D: Balance | Debit balance minus credit balance | 13500 |
| E: Account3 | =LEFT(B2,3) |
621 |
If your software gives two columns, debit balance and credit balance, column D is the first minus the second. That way expenses and assets come out positive, and income and debts negative. The LEFT function returns the first characters of a text string: with 3 you get the three-digit account, even if your software uses eight or ten digits.
Each month you add the rows for the new month. The rows for the same month last year must be there too, because that is where the comparison comes from.
"Map" sheet: each account to its line
This is the mapping above, at three digits, with an extra column for the break-even point. An example with typical accounts for a shop:
| A: Account3 | B: Line | C: Type |
|---|---|---|
| 700 | Sales | |
| 708 | Sales | |
| 600 | Supplies | Variable |
| 610 | Supplies | Variable |
| 621 | Other operating expenses | Fixed |
| 628 | Other operating expenses | Fixed |
| 640 | Staff | Fixed |
| 642 | Staff | Fixed |
| 662 | Finance | Fixed |
| 681 | Depreciation | Fixed |
| 630 | Corporate income tax | |
| 430 | Customers | |
| 400 | Suppliers | |
| 410 | Suppliers | |
| 572 | Cash |
Add one row for every three-digit account your books use in groups 6 and 7, plus the customer, supplier and cash accounts. You only do this once. If you use impairment and provision accounts (subgroups 69 and 79), check in the format which line each one belongs to.
Column D holds each account's balance for the current period, column E the balance for last year:
=SUMIFS(Data!$D:$D,Data!$A:$A,Dashboard!$B$1,Data!$E:$E,$A2)
Column E is the same, with Dashboard!$C$1 instead of Dashboard!$B$1. The SUMIFS function adds up the cells that meet several criteria at once: here, the period and the account. Microsoft points out that each criteria range "must contain the same number of rows and columns as the Sum_range argument".
The formulas here use English function names and commas. In Spanish Excel the same functions are SUMAR.SI.CONJUNTO, IZQUIERDA and SI, and the arguments are separated with semicolons, as in Microsoft's examples for the Spanish IF function (SI).
"Dashboard" sheet: the eight KPIs
In B1 enter the current period (2026-09) and in C1 the same period last year (2025-09). In B2 and C2, the number of days in the period: January to September is 273. From row 4, one line per figure, with these formulas in column B:
| Row | Figure | Formula |
|---|---|---|
| 4 | Sales | =-SUMIFS(Map!$D:$D,Map!$B:$B,"Sales") |
| 5 | Supplies | =SUMIFS(Map!$D:$D,Map!$B:$B,"Supplies") |
| 6 | Gross margin | =B4-B5 |
| 7 | Other operating income | =-SUMIFS(Map!$D:$D,Map!$B:$B,"Other income") |
| 8 | Staff | =SUMIFS(Map!$D:$D,Map!$B:$B,"Staff") |
| 9 | Other operating expenses | =SUMIFS(Map!$D:$D,Map!$B:$B,"Other operating expenses") |
| 10 | EBITDA | =B6+B7-B8-B9 |
| 11 | Profit before tax | =-SUMIFS(Map!$D:$D,Map!$A:$A,"6*")-SUMIFS(Map!$D:$D,Map!$A:$A,"7*")+SUMIFS(Map!$D:$D,Map!$B:$B,"Corporate income tax") |
| 12 | Fixed costs | =SUMIFS(Map!$D:$D,Map!$C:$C,"Fixed") |
| 13 | Variable costs | =SUMIFS(Map!$D:$D,Map!$C:$C,"Variable") |
| 14 | Break-even point | =IF(B4=0,"",B12/(1-B13/B4)) |
| 15 | Cash | =SUMIFS(Map!$D:$D,Map!$B:$B,"Cash") |
| 16 | Customers | =SUMIFS(Map!$D:$D,Map!$B:$B,"Customers") |
| 17 | Suppliers | =-SUMIFS(Map!$D:$D,Map!$B:$B,"Suppliers") |
| 18 | Purchases and external services | =SUMIFS(Map!$D:$D,Map!$A:$A,"60*")+SUMIFS(Map!$D:$D,Map!$A:$A,"62*") |
| 19 | Debtor days | =IF(B4=0,"",(B16/1.21)/B4*B$2) |
| 20 | Creditor days | =IF(B18=0,"",(B17/1.21)/B18*B$2) |
Copy column B into column C and replace Map!$D:$D with Map!$E:$E. A few notes:
- Income and debts carry a minus sign in front, because they come out negative in "Data".
- Profit before tax adds up all of groups 6 and 7 and then adds back corporate income tax, which in the map means accounts 630, 633 and 638. That way no small line slips through.
- The
IF(B4=0,"",...)avoids a division error in months with no sales. The syntax is that of the IF function. - The 1.21 removes standard VAT at 21% (Ley 37/1992, art. 90). If you sell or buy at other rates, use yours.
- For creditor days, the ICAC resolution explained further down uses the average supplier balance. If you keep every month's closing figures, use their average instead of the latest one.
Add one last control row, the check: the total of groups 6 and 7 in "Data" minus the same total in "Map". It must come to zero.
=SUMIFS(Data!$D:$D,Data!$A:$A,B$1,Data!$E:$E,"6*")+SUMIFS(Data!$D:$D,Data!$A:$A,B$1,Data!$E:$E,"7*")-SUMIFS(Map!$D:$D,Map!$A:$A,"6*")-SUMIFS(Map!$D:$D,Map!$A:$A,"7*")
If it is not zero, there is an account in the books that is missing from the map. The asterisk works because SUMIFS criteria accept it as a wildcard for any sequence of characters.
How do you compare with last year?
The same way annual accounts do. The SME plan requires each line to show, "además de las cifras del ejercicio que se cierra, las correspondientes al ejercicio inmediatamente anterior" (besides the figures for the year being closed, those for the previous year) (part three, rule 4). If they are not comparable, for example after a change of accounting policy, last year's figures have to be adjusted. In your dashboard, always compare year to date with year to date, over the same months.
In column D, the change: =IF(C4=0,"",B4/C4-1), copied down. To make it stand out, use conditional formatting with a formula (Home > Conditional Formatting > Manage Rules > New Rule, then the rule type that uses a formula). With =$D4<0 on the sales, margin and EBITDA rows, any fall turns red. For debtor days it works the other way round: the bad news is when they go up. And if you keep the twelve months in columns, a sparkline on each row, which Microsoft describes as "a tiny chart in a worksheet cell", shows the trend without a separate chart.
This is what the sheet looks like with figures made up for the example:
| KPI | January to September 2026 | January to September 2025 | Change |
|---|---|---|---|
| Sales | €450,000 | €420,000 | +7.1% |
| Gross margin | €180,000 (40.0%) | €172,200 (41.0%) | +4.5% |
| EBITDA | €45,000 (10.0%) | €48,000 (11.4%) | -6.3% |
| Profit before tax | €33,000 | €37,000 | -10.8% |
| Break-even point | €367,500 | €329,756 | +11.4% |
| Cash at 30 September | €38,000 | €52,000 | -26.9% |
| Debtor days | 73 | 61 | +12 days |
| Creditor days | 55 | 58 | -3 days |
In the example, fixed costs are everything except supplies: €147,000 in 2026. With a 40% contribution margin, the break-even point is 147,000 / 0.40 = €367,500. Debtor days come from a customer balance of €145,200 including VAT: 145,200 / 1.21 = €120,000, and 120,000 / 450,000 × 273 = 73 days. Creditor days come from a supplier balance of €72,600 including VAT (€60,000 without it) against €300,000 of purchases and external services: 60,000 / 300,000 × 273 = 55 days.
The reading fits in one sentence: the company sells more but earns less, because it has lost a point of margin and its fixed costs have gone up, and it has less cash because it is paid 12 days later. That is what a dashboard should tell you: not the numbers, but where to look.
Why doesn't my dashboard add up?
These are the usual mistakes:
- Signs. Income and debts come out negative. Flip the sign in the "Dashboard" sheet, never in "Data".
- December after year-end closing. According to the SME plan, "en general todas las cuentas del grupo 6 se abonan, al cierre del ejercicio, con cargo a la cuenta 129" (as a rule, all group 6 accounts are credited at year end against account 129, the profit or loss for the year), and group 7 accounts are debited against the same account. If you export December's trial balance after that entry, sales and expenses come out at zero. Export before the closing entry.
- Costs only booked at year end. If depreciation or extra salary payments are only booked in December, profit from January to November looks inflated and does not compare well with the full year. Ask for them to be booked monthly, or add the share that belongs to each month.
- A new account that is not in the map. The check row catches it.
- VAT in customer and supplier balances. If you leave it in, the days come out higher than they really are.
- Different periods. One month against a year to date, or nine months against twelve. A single month is the year to date minus the previous month's year to date.
What does Spanish law say about paying suppliers?
Creditor days are not just a management figure. There are legal limits and, for companies, reporting duties.
- Maximum term. If no other term was agreed, it is "treinta días naturales después de la fecha de recepción de las mercancías o prestación de los servicios" (thirty calendar days after receiving the goods or services). It can be extended by agreement, but "en ningún caso" (in no case) beyond 60 calendar days (Ley 3/2004, art. 4, the late payment act).
- How an SME calculates it. The ICAC resolution of 29 January 2016 (the ICAC, Instituto de Contabilidad y Auditoría de Cuentas, is Spain's accounting and audit standards body) sets this formula for companies that use the SME plan or prepare abridged notes to the accounts (art. 5.5): average balance of trade creditors divided by net purchases and external services expenses, times 365. Trade creditors cover "las partidas de proveedores y acreedores varios" (the supplier and sundry creditor lines). That is the template's formula, with the days in the period instead of 365. Companies that prepare full notes use a more detailed formula that weights the days of each transaction by its amount.
- Where it is published. Companies that cannot file an abridged profit and loss account must state their average payment period in the management report (informe de gestión) and, if it exceeds the legal maximum, the measures to bring it down (Spanish Companies Act, art. 262.1).
The resolution has not changed since 2016, but the ICAC published a query in its bulletin 146, June 2026, that clarifies the calculation. As a general rule, days are counted from receipt of the goods or services, and the invoice receipt date can only be used in the cases that Ley 3/2004 expressly provides for. Part payments are measured one by one, and paying within the agreed term, up to the 60-day limit, is not late payment. The same answer recalls that, under Ley 18/2022, companies with full notes must also report the value and number of invoices paid within the legal maximum.
The dashboard figure is a management estimate. The one in the notes to the accounts (memoria) is calculated by whoever prepares them, following the resolution.
What should you compare your ratios with?
First, with yourself: last year and the trend over recent months. Then, with your sector. The Banco de España's sector ratios database (RSE) publishes "29 ratios significativas para el análisis económico y financiero" (29 significant ratios for economic and financial analysis) of non-financial companies, broken down by "actividad, tamaño y país" (activity, size and country), and is designed to place a company within its sector and size band. Before comparing, check how the Banco de España defines each ratio, because it may not match your formula.
When is it worth automating?
There is a halfway step without leaving Excel: import the export with Power Query instead of pasting it. On the Data tab, in the Get & Transform Data group, click From Text/CSV, pick the file, check the delimiter in the preview and click Load, as Microsoft explains in its guide to importing text files. Save each month's export with the same name in the same folder, then click Refresh All or press Ctrl + Alt + F5. In the connection properties you can tick "Refresh data when opening the file" (Microsoft: refresh an external data connection).
Excel stops paying off when:
- You run dashboards for many companies. An advisory firm (asesoría or gestoría) with thirty clients has thirty workbooks, thirty maps and thirty exports a month.
- Each client uses different software or a different level of account detail, and the map has to be rebuilt for each one.
- Everything depends on someone exporting, pasting and checking the control row. The month they don't, the dashboard goes stale without warning.
- The client wants the report as a PDF for the meeting, and someone lays it out by hand.
If the template works for you, keep it. If not, that is why we built Financial dashboard: it calculates sales, EBITDA, margins and break-even point for each client from their accounting export and compares them with the previous year, on screen and as a PDF. If you run an advisory firm, see also what else can be automated for advisory firms and which tasks make sense to hand to AI in AI for accountants and gestorías. And if you like well-built Excel templates, the expiry tracking template follows the same idea.
Frequently asked questions
What is the difference between a dashboard and the annual accounts?
Annual accounts follow the PGC formats and are prepared at year end. A dashboard is an internal tool: you design it, update it every month and include only the figures that help you decide. It comes from the same books, so the figures must agree.
Does EBITDA appear in Spanish annual accounts?
No. The profit and loss formats in the PGC and in the SME plan have no EBITDA line and do not define it. It is calculated from their lines; in this template, gross margin plus other operating income, minus staff and other operating expenses.
What is the maximum time to pay a supplier in Spain?
Thirty calendar days from receipt of the goods or services if no other term was agreed, and at most 60 calendar days by agreement (Ley 3/2004, art. 4). If your creditor days go over 60, the dashboard will tell you before the notes to the accounts do.
How often should the dashboard be updated?
Once a month, when the month's books are closed: bank accounts reconciled and invoices recorded. If you update it earlier, the figures change later and you stop trusting the sheet.
Does the template work if my company uses the full PGC?
Yes, after reviewing the map. The abridged profit and loss format in the full PGC uses the same accounts for sales, supplies, other operating expenses and depreciation, and for staff costs it adds 7950 and 7957.
Sources
- Royal Decree 1515/2007, General Accounting Plan for SMEs (consolidated text, BOE)
- Royal Decree 1514/2007, General Accounting Plan (consolidated text, BOE)
- Ley 3/2004, of 29 December, on combating late payment in commercial transactions (consolidated text, BOE)
- ICAC resolution of 29 January 2016 on the average payment period to suppliers (BOE)
- Royal Legislative Decree 1/2010, Spanish Companies Act (consolidated text, BOE)
- Ley 37/1992, VAT Act (consolidated text, BOE)
- ICAC: Bulletin no. 146, June 2026, accounting query 2
- Banco de España: public sector information databases (RSE)
- Microsoft: SUMIFS function
- Microsoft: LEFT function
- Microsoft: IF function
- Microsoft: Spanish IF function (SI)
- Microsoft: use conditional formatting to highlight information in Excel
- Microsoft: use sparklines to show data trends
- Microsoft: import or export text (.txt or .csv) files
- Microsoft: refresh an external data connection in Excel