Convert a Rabobank MT940 file to Excel

In short: A Rabobank-style MT940 file has one statement per day, the other party's IBAN on the second booking line, and /NAME/ and /REMI/ code words in the description. The converter turns all days into one table. Drop the file below; it is converted on your device and never uploaded.

Convert Rabobank MT940

MT940 to Excel (CSV)

A .sta, .940, .mt940 or .txt file from your bank's MT940 (SWIFT) statement download

Your file stays on this device

It is read and converted by this page, inside your browser. Nothing from the file is uploaded, and the converter keeps working offline once the page has loaded.

One email when it ships. The address is used for nothing else. Details.

What the Rabobank MT940 file looks like

  • In the sample, each day is its own statement: the reference (:20:) is 940S followed by the date, and days without bookings still have a statement with equal opening and closing balances.
  • The account line (:25:) is the IBAN, a space and the currency, for example NL68RABO0123456789 EUR.
  • The other party's IBAN is on the second line of the booking (:61:), not in the description.
  • The description field (:86:) uses code words such as /ORDP//NAME/ with /ADDR/ for money in, /BENM//NAME/ for money out, /REMI/ for the payment description, /EREF/ for the end-to-end reference and /ISDT/ for a date. Values can continue on the next line in the middle of a word or date.

What the converter does with it

  • Reads the other party's name from /NAME/, the description from /REMI/, the /EREF/ value as the reference, and the IBAN from the second :61: line.
  • Reads every daily statement in the file and checks that each one opens with the closing balance of the day before, and that the bookings add up to each closing balance.
  • Uses the IBAN without the currency as the account number.

Before and after

Before: the MT940 statement as downloaded

:20:940S150209
:25:NL68RABO0123456789 EUR
:28C:0
:60F:C150206EUR000000005442,89
:61:150209C000000000300,00N541NONREF
NL75INGB0001234567
:86:/ORDP//NAME/Hr J DOE/ADDR/Ieplaan 100 2500AA S GRAVENHAGE
 NL/REMI/bijdrage februari 2014/ISDT/2015-02-09
:62F:C150209EUR000000005742,89

After: what Excel, Google Sheets or LibreOffice receives

After: mt940-2015-02-09-to-2015-04-20-spreadsheet.csv
DateValue dateAmountCurrencyDebit/CreditCounterpartyCounterparty accountDescriptionReferenceBalance
2015-02-092015-02-09300.00EURCreditHr J DOENL75INGB0001234567bijdrage februari 20145742.89
2015-02-162015-02-16300.00EURCreditHr J DOENL75INGB0001234567Maandelijkse bijdrage februari6042.89
2015-02-192015-02-19600.00EURCreditM. DOE EONL60RABO0987654321Inleg maart 20155027902426642.89
2015-03-162015-03-16300.00EURCreditHr J DOENL75INGB0001234567Maandelijkse bijdrage februari6942.89
2015-03-222015-03-22600.00EURCreditM. DOE EONL60RABO0987654321Inleg april 20155301594787542.89
2015-03-262015-03-26-4114.00EURDebitBouwbedrijf M NAAIER B.V.NL25DEUT050881234515185Factuurnr.: 2015014 project: 201502 15344563953428.89

Sample: "RABO MT940 Structured", a Rabobank-style MT940 file shared publicly on GitHub (not published by Rabobank). It adds up: 5,442.89 at the start, 4,003.49 at the end, over 8 bookings. The "after" output was produced from it by the same converter this page runs.

Import the converted file into Excel, Google Sheets or LibreOffice

  1. Open the downloaded file in Excel, Google Sheets or LibreOffice.
  2. If every value lands in one column, use the semicolon style (for European Excel) or import it with Data > From Text/CSV.

Questions

How do I know nothing went missing?
Every MT940 statement carries an opening and a closing balance. The converter adds up the bookings of each statement and compares the result with the closing balance. If they do not match, you see a warning that names the statement and the difference.
Why does everything land in one column in Excel?
Excel uses the list separator of your computer's region. In much of Europe that is a semicolon and the decimal mark is a comma. Choose the semicolon style and download again, or open the file through Data > From Text/CSV and pick the separator there.
My file has several accounts. What happens?
One file can hold statements for several accounts or currencies. Each converted file holds one account in one currency, and a menu lets you pick which one. Convert each account into its own account in your books.
Are accents and umlauts kept?
Yes. The file is UTF-8 and starts with the marker Excel looks for, so names such as Müller or Société open correctly.

Sources

BooksReady is not affiliated with, endorsed by or sponsored by Rabobank. The layout notes above come from the sources listed.

More