E-invoice data template in Excel: EN 16931 fields, checked before you send

An e-invoice is a data file that software reads, not a document you print. Excel cannot send one, but it is a good place to prepare the data: every field in the structure of the European standard, missing fields flagged, and a VAT breakdown that adds up before the data reaches your e-invoicing software.

Important: this template is an organizing aid, not tax advice, and the Excel file is not an e-invoice. You are responsible for the accuracy of your invoices. Check required fields, VAT rates and codes against official sources for each country you invoice, or with a tax professional.

In short: the template splits an invoice into the business terms of EN 16931, each with its number (BT-1 invoice number, BT-44 buyer name and so on). IF flags every empty required field. The VAT breakdown totals the lines per category and rate with SUMIFS and works out the VAT with ROUND. E-invoicing software then turns the data into a structured file.

You should know: SUMIFS, ROUND and IF.

Try it now

Before the data goes anywhere, check for empty required fields. Two formulas do it:

Task Before the data goes into your e-invoicing software: in C11, count how many required fields in C2:C9 are still empty. C12 should show "OK" when nothing is missing, otherwise "missing".

ABCD
1 BT Required field Value
2 BT-1 Invoice number INV-2027-014
3 BT-2 Invoice date 15 Jan 2027
4 BT-5 Currency GBP
5 BT-27 Seller Bright Pixel Studio Ltd
6 BT-40 Seller country GB
7 BT-44 Buyer
8 BT-55 Buyer country GB
9 BT-72 Date of supply
10
11 Required fields missing
12 Status
13
14

Download the e-invoice data template

The workbook has four sheets. Invoice data holds the header, seller, buyer and payment details, each field with its BT number, what requires it and a check; the top line tells you whether everything passes. Lines has 20 invoice lines, the VAT breakdown and the document totals with five checks. Codes lists invoice types, units, VAT categories and payment means from the code lists of the standard, plus Instructions. Formulas are protected without a password, yellow cells are inputs, codes come from drop-down lists. The sample is a UK invoice in GBP with 20% and 0% VAT.

Preview of the e-invoice data template in Excel: invoice lines with quantity, unit code, net price, VAT category and rate, the VAT breakdown per rate, document totals as in EN 16931 and checks showing OKEnlarge preview

Download the finished template

The finished Excel file e-invoice-template.xlsx, with sample rows and instructions, is free. All you need is a free account: no subscription, no payment details.

Figures, rates and sample data in the templates are as of 13 November 2026, without guarantee. Check that they still apply to you. The templates are mainly meant to show how to build this in Excel.

Create a free account and download the template Already have an account? Log in

Where e-invoicing is required

The rules differ by country, so check each country you invoice.

  • EU: EN 16931 defines the structure of an e-invoice, and the EU directive on e-invoicing in public procurement (2014/55/EU) refers to it. Countries can also require e-invoices between businesses; Germany, for example, phases in the obligation to issue them until the start of 2028.
  • UK: the government plans to require VAT invoices as e-invoices from 1 April 2029 for VAT-registered businesses, with Peppol as the core framework. The details will follow in secondary legislation (gov.uk, published October 2026).
  • Peppol is a network and set of specifications for exchanging e-invoices between different software, run by the non-profit OpenPeppol.

How the template is organized (EN 16931)

GroupFields (selection)Checked
InvoiceBT-1 number, BT-2 issue date, BT-3 type code, BT-5 currency, BT-72 date of supply, BT-9 due date, BT-20 payment terms, BT-10 buyer referencerequired fields, due date or payment terms
Seller BG-4, Buyer BG-7name, address, country code, VAT identifier, electronic address, contactname and country (EN 16931), address and contact (UK invoice rules)
Payment BG-16BT-81 payment means, BT-84 account, BT-86 BIC or sort codeaccount for credit transfers
Lines BG-25item name, quantity, unit, net price, net amount, VAT category, ratecomplete, rate fits category
VAT breakdown BG-23, totals BG-22taxable amount and VAT per category and rate, net, VAT, gross, amount duetotals add up

Rule numbers such as BR-02 or BR-CO-13 are the EN 16931 business rules as published at docs.peppol.eu; units and categories come from the code lists there. What every UK invoice must include is on gov.uk.

Build it step by step

1. Required field checks

Next to each value, =IF(C7="","missing","OK"). Pairs use AND or OR, for example the due date or payment terms: if the amount due is positive, at least one of them must be filled. The top line counts every open field with COUNTIF(E6:E40,"missing"). For one block of cells, COUNTBLANK does it in one go, as in the exercise above.

2. Lines and codes

Unit and VAT category come from drop-down lists on the Codes sheet: C62 for one unit, HUR for hour, LS for lump sum; S for standard rate, Z for zero rated, E for exempt, AE for reverse charge. The net amount is =ROUND(C5*E5,2). The line check reports, for example, rate must be 0 when an exempt line has a rate.

3. VAT breakdown

One row per combination of category and rate. A helper key such as =G5&"|"&ROUND(H5*10000,0) (giving S|2000) links lines and rows. The taxable amount is =SUMIFS($F$5:$F$24,$J$5:$J$24,J28) and the VAT =ROUND(E28*C28,2), which is what rule BR-CO-17 asks for.

Task Fill in the VAT breakdown of an e-invoice. H2: the total of the net amounts at the rate in G2. I2: the VAT on it, rounded to the penny. H3 and I3: the same for G3. I5: the total VAT. I6: all lines plus VAT.

ABCDEFGHIJ
1 Line Item Net (BT-131) Category Rate Rate (BT-119) Taxable (BT-116) VAT (BT-117)
2 1 Pushchair travel system 850 S 0.2 0.2
3 2 Cot and mattress 285 S 0.2 0.05
4 3 Children's car seat 79.8 S 0.05
5 4 Baby monitor 87 S 0.2 Total VAT (BT-110)
6 5 High chair 120 S 0.2 Total with VAT (BT-112)
7 6 Booster seat 45.95 S 0.05
8
9

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

4. Totals and the cross-check

Net is the sum of the lines, VAT the sum of the breakdown. =ABS(SUM(E28:E32)-F35)<0.005 shows whether every line landed in the breakdown. If a row is missing, for example for 5%, the totals no longer match and the check turns red. The UK rates in the examples come from gov.uk.

From the workbook to an e-invoice

Enter the data in e-invoicing software or an access point service that creates the structured file, for example Peppol BIS Billing in UBL. The software validates the file against the rules of the standard and sends it. Excel only prepares and checks the data.

Common mistakes

Sending a PDF and calling it an e-invoice

A PDF is made for the eye. Where e-invoicing is required, it has to be a structured file that software can process.

Rounding VAT on every line

The standard works out VAT per row of the breakdown from the total net amount. Rounding each line and adding them up can be a few pennies off.

Rate and category that do not fit

S needs a rate above 0; Z, E, AE, K and G need 0; O has no rate at all. Every category except S and Z needs an exemption reason in the breakdown.

Typing VAT amounts by hand

A typed amount does not change when a line changes. Let SUMIFS and ROUND do it.

The formulas in German Excel

The German version is called E-Rechnung and adds the required details of German VAT law (§ 14 UStG) and the German transition dates.

EnglishGerman
SUMIFS, COUNTIFSUMMEWENNS, ZÄHLENWENN
COUNTBLANK, COUNTAANZAHLLEEREZELLEN, ANZAHL2
IF, AND, ORWENN, UND, ODER
ROUND, ABSRUNDEN, ABS

German Excel separates arguments with semicolons: =RUNDEN(E28*C28;2).

Which Excel versions does it work in?

Every function in the template works in all current versions of Excel, including Excel for Mac and Excel for the web. No Microsoft 365 functions and no macros are needed.

FAQ

Can Excel create a UBL or Peppol file?

Not on its own. The structured file follows strict rules and is created by e-invoicing software. This template prepares and checks the data.

Do I need e-invoicing in the US?

Check the rules that apply to you and your customers. The template works as a structured record of invoice data either way.

Why are there BT numbers next to every field?

They are the business term numbers of EN 16931. Software, validators and specifications use them, so they help you find each field in other tools.

Can I use it for a normal invoice?

For a printable invoice with a product list, use the invoice template.

Is the template free?

Yes. Download the Excel file with a free account, no subscription and no payment details.

To reconcile VAT or sales tax in your books with your returns, see the sales tax reconciliation template.

Next: the VAT return in Excel

The accounting course shows how to work out a VAT return from your ledger.

Go to the VAT return

Write to us

Choose language

Select your preferred language