Free Excel invoice template for Morocco, with VAT calculated
An .xlsx workbook that calculates each line total, the total excl. VAT, VAT at 20%, 10% or 0% and the total incl. VAT as soon as you type a quantity and a price. It includes the mentions of article 145 of the General Tax Code, and no macros.
Download the Excel file
Two workbooks: the blank template, ready for your first invoice, and the filled example, to see the formulas at work. The French and Arabic pages give the file in those languages.
.xlsx file with no macros: it opens in Excel, LibreOffice Calc, Google Sheets and Numbers. Fill in the yellow cells; the totals calculate themselves.
What the file calculates for you
Each line total
Quantity × unit price excl. VAT × (1 − discount): the Total excl. VAT column changes as soon as you edit a figure. Leave the discount at 0 when you don’t give one.
A drop-down list for VAT
Each line takes 20, 10 or 0 from a list: no typing mistakes, and no old 7% or 14% rate, which no longer apply since 1 January 2026.
VAT broken down by rate
Formulas total the VAT at 20%, 10% and 0% separately. An invoice that mixes two rates therefore shows two VAT amounts, as article 145 of the General Tax Code requires.
Totals excl. and incl. VAT
They update by themselves. A row inserted inside the table is counted in the totals without you touching the formulas.
Your details, entered once
Header with ICE (Common Company Identifier), IF (tax ID), RC (trade register), taxe professionnelle (business tax) and logo, the client block with their ICE, payment terms, late-payment clause and RIB.
The amount in words, to paste
Without macros, Excel cannot spell out an amount: the cell for it is filled in by hand, and a link opens the free tool that writes it for you.
How to fill in your invoice in Excel
Fill in the header, then save
Type your details and identifiers in the cells provided, insert your logo (Insert > Pictures), then save the workbook under a new name: it becomes your template.
Type quantities, prices and discounts
One line per product or service: description, quantity, unit, unit price excl. VAT and any discount. Type numbers only: “1200”, not “1200 MAD”.
Pick the VAT rate from the list
Click the line’s VAT cell and choose 20, 10 or 0. For an exempt line, write the exemption mention under the table, for example “article 92-I-1° of the CGI” for an export.
Add rows in the right place
Insert the new row between two rows of the table (right-click the row number > Insert), never below the last one. If needed, copy the total formula down from the row above.
Check the preview and export to PDF
The print area covers the invoice on A4; after adding many rows, check the preview. Then use File > Export > PDF, or File > Download > PDF in Google Sheets.
The filled example: the formulas at work
The example workbook holds an invoice from Studio Nour SARL AU (Agdal, Rabat) to Maghreb Logistique SARL (Tangier, contact: Hamza Alaoui). Click the total cells to read their formulas: it is the surest way to understand the file before you use it.
- A line with a discount: the showcase website, 1 package at 16,000 MAD with a 10% discount, gives 1 × 16,000 × (1 − 10%) = 14,400.00 MAD excl. VAT.
- Lines without a discount: visual identity 8,500.00 MAD, product photography 2 days × 3,200 MAD = 6,400.00 MAD, flyers 3 batches × 650 MAD = 1,950.00 MAD.
- Total excl. VAT: the sum of the four lines, 31,250.00 MAD.
- VAT per rate: every line is at 20%, so VAT at 20% is 6,250.00 MAD; the 10% and 0% totals stay at zero.
- Total incl. VAT: 37,500.00 MAD.
- Amount in words: “thirty-seven thousand five hundred dirhams”, typed into its cell after a visit to the free tool.
Try this: switch the photography line to 10% in the list (just a test, the real rate depends on the activity). VAT at 20% drops to 4,970.00 MAD, VAT at 10% of 640.00 MAD appears and the total incl. VAT becomes 36,860.00 MAD. Then set it back to 20%: nothing breaks.
Frequently asked questions
Faster: make it online
The free generator does the same sums, writes the amount in words, adds stamp duty when the invoice is paid in cash, then downloads it as Excel, Word or PDF.