Free · formulas included

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.

Totals and VAT by formulaVAT drop-down: 20, 10 or 0%Excel, Calc, Sheets, Numbers
Free download

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.

Get the template

Enter your e-mail address: the file downloads and a copy of the link is sent to you.

Your address is used to send you this template; you receive nothing else without your consent. Privacy policy

Fill it in online

.xlsx file with no macros: it opens in Excel, LibreOffice Calc, Google Sheets and Numbers. Fill in the yellow cells; the totals calculate themselves.

The template

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

How to fill in your invoice in Excel

1

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.

2

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”.

3

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.

4

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.

5

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.

FAQ

Frequently asked questions

Another question?

Our team answers in French, Arabic and English.

Since 1 January 2026, Moroccan VAT has only two rates: 20%, the standard rate, and 10%, the reduced rate for certain operations. Some operations are exempt: choose 0 and add the exemption mention. One invoice can mix rates; the file totals the VAT of each. The former 7% and 14% rates no longer apply. The right rate depends on your activity: check with your accountant.
Excel has no formula that writes a number in words: it would take a macro, and files with macros are often blocked by e-mail services. The template contains none. Open the “Amount in words” tool from the link in the file, type the total incl. VAT and paste the result into the cell.
##### means the column is too narrow for the number: widen it by double-clicking the right edge of its header. #VALUE means there is text in a calculation cell, often a price typed as “1200 MAD”: keep only the number, with the cents after a point or a comma depending on your Excel language.
First delete the empty rows of the table, then look at the preview (File > Print). If that is not enough, choose “Fit Sheet on One Page” in the scaling options, or accept a second page and check that the totals and the amount in words stay together.
Ten years: that is the retention period set by article 211 of the General Tax Code. Keep the PDF exactly as you sent it, filed under its number, and the Excel workbook used to make it. Keep a backup somewhere other than your computer. A free account on this site also keeps your invoices, with continuous numbering.

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.