In this article
Rules are stored in the Recurring transactions table, accessible from the menu Actions > Recurring transactions > Recurring transactions table.
Rows containing !Rule or !RuleSplit in the Doc column are used to define Rules.
In the Rule rows, the table columns have a specific meaning and are divided into two categories:
- Condition (or search) columns: contain the criteria used to identify imported bank transactions and determine when to apply a Rule.
- Action (or replacement) columns: contain the data to be automatically entered in the transactions that match the Rule.
The main condition columns are Doc, Date, Description, Debit/Credit Account and Amount. The other columns can be used to complete the transactions, as described below.

Condition columns
The condition columns define which bank transactions must be identified by the Rule.
Doc column (mandatory)
In the Doc column, enter one of the following values:
- !Rule: identifies the main row of a Rule.
- !RuleSplit: identifies an additional row of a Rule that creates transactions on multiple rows. It must be used in the rows following the main Rule.
Description column (mandatory)
In the Description column, enter the text that the Rule must search for in the description of the imported bank transactions.
You can use different search methods:
- Search by phrase: enter the words in the same order in which they must appear in the bank transaction description. For example, Best Insurance.
- Search by independent words: enter the + symbol before the first word, for example +Best Insurance 892-948. The Rule searches for all the specified words, even if they appear in a different order or are separated by other words.
- Search by alternative words: separate the words with the | symbol, for example coffee|restaurant. The Rule identifies transactions containing at least one of the specified terms.
You can also assign a name to the Rule by entering it in square brackets at the beginning of the description. The name is optional and makes it easier to identify the Rule.
For more information, see the Description condition.
Debit and Credit Account columns (recommended)
These columns allow you to specify the bank account to which the Rule applies.
In Double-entry accounting:
- Debit Account: is used as a condition to identify incoming transactions.
- Credit Account: is used as a condition to identify outgoing transactions.
In Income & Expense accounting, use the Account column.
Normally, the specified account is the bank account from which the transactions are imported. If you want the Rule to apply to a specific bank account, enter the account without square brackets. If you want to apply the same Rule to transactions from different bank accounts, you can remove the bank account used for the import, leaving only the contra account.
Important: a bank account enclosed in square brackets, for example [1020], is treated as a comment and is not used as a condition to identify transactions.
For more details, see the Account condition.
Date column (optional)
The Date column allows you to limit the application of the Rule to a specific period.
This is useful when a Rule must only be applied to bank transactions within a specific date range.
Amount column (optional)
The Amount column allows you to limit the application of the Rule to a specific amount or range of amounts.
In Income & Expense accounting, use:
- Income: for incoming transactions.
- Expenses: for outgoing transactions.
For more information, see the Conditions for Rules.
Replacement columns
The replacement columns contain the accounting information that the Rule must enter in the imported transactions.
Contra account column
Specify the accounting account that must replace the temporary contra account [CA], or the one selected in the Apply rules dialog.
In Double-entry accounting:
- Incoming transactions: use the Credit Account column.
- Outgoing transactions: use the Debit Account column.
In Income & Expense accounting, use the Category column.
VAT Code column
Enter the VAT Code to be applied to the bank transaction. When the Rule is applied, Banana Accounting automatically completes the VAT-related columns.
Cost center columns (CC1, CC2, CC3)
Enter the cost centers to be assigned to the bank transactions identified by the Rule.
Notes column
You can enter additional information that will be transferred to the imported transactions. The Notes column can also be used to enter temporary text that makes it easier to find transactions that need to be checked or completed manually.
Other columns
All columns that are not used as condition columns can be used as replacement columns, except for ExternalReference. The ExternalReference column is reserved for bank imports and is used to identify imported transactions, helping to prevent duplicates.
Linking supporting documents using the DocLink column
The DocLink column makes it easier to associate bank transactions with their corresponding digital documents, such as invoices and other supporting documents. You cannot enter a direct link to a specific document in the Rule, because each bank transaction may have a different supporting document. However, you can enter search text in square brackets, which will be transferred to the imported transaction and used to identify the documents to be linked.
How to proceed
- In the Recurring transactions table, enter text in square brackets in the DocLink column, for example [invoice].
- Inside the square brackets, specify a word that must appear in the file name of the supporting document.
- Import the bank transactions and apply the Rules.

- In the Transactions table, the identified transactions contain the text in square brackets in the Link column.

Searching for transactions without supporting documents
In the Transactions table, use the Filter rows function by entering the text !link![ ]. The program displays the transactions that contain square brackets in the Link column and for which you still need to enter a link to the document.
When you edit a cell in the Link column, Banana Accounting uses autocomplete to suggest files that have not yet been associated with a transaction and whose names contain the text specified in square brackets.
Example: if the Link column contains [invoice], the program suggests files that have not yet been linked and contain the word "invoice" in their names.
This allows you to identify and link supporting accounting documents more quickly.
Quickly finding and completing transactions
After importing bank transactions and applying the Rules, some transactions may require additional information or manual checks.
To quickly identify the transactions that need to be completed, you can use two methods.
Using the Notes column
You can enter temporary search text in the Rules, which will be transferred to the imported transactions and used to identify them through a filter.
Proceed as follows:
- In the Notes column of the Recurring transactions table, enter identifying text, for example #city. You can also use another available replacement column, provided it is not reserved for the Rule conditions.
- Import the bank transactions and apply the Rules.
- In the Transactions table, use the Filter rows function, searching for the same text #city.
The program displays the transactions containing the specified text, allowing you to quickly identify and complete them.
Coloring the Rule rows
You can assign a color to the Rule rows in the Recurring transactions table.
When you apply the Rules, the color is transferred to the Transactions table, highlighting the transactions to which the Rule has been applied.
To display only the colored transactions, use the Filter rows function by entering the text !_co!.
This method allows you to visually identify and filter transactions that require manual checking or completion.

Transactions on multiple rows (split rows)
Normally, when you apply a Rule to an imported bank transaction, Banana Accounting completes the transaction by entering a single contra account.
Rules with !RuleSplit can only be created and edited in the Recurring transactions table. Rules associated with !RuleSplit rows are not displayed in the Add/Edit rules dialog. They are available in the Add/Edit rules dialog, which does not display Rules associated with !RuleSplit rows.
Example: receiving a rent payment
Suppose you regularly receive a bank payment of 550, which must be split between two revenue accounts:
- 550: total rent payment received, recorded in the bank account specified in the Rule.
- 500: rental income, to be allocated to the Rental income account.
- 50: income from additional charges, to be allocated to the corresponding accounting account.
The Rule therefore uses one main row for the incoming bank payment and two additional rows to split the amount between the revenue accounts.
How to create a Rule on multiple rows
1. Set up the first row (!Rule)
The first row identifies the imported bank transaction and contains the conditions for identifying it.
- In the Doc column, enter !Rule.
- In the Description column, enter the text to search for in the description of the imported bank transactions.
- In the contra account column, enter the account to be used or empty square brackets
[]if you want to leave the account empty.
2. Set up the following rows (!RuleSplit)
The following rows define the additional transactions to be created when the Rule is applied.
- In the Doc column, enter !RuleSplit.
- In the Description column, enter the text that must appear in the additional transaction.
- In the Debit Account and Credit Account columns, enter the accounting accounts to be used or leave them empty, depending on the requirements of the transaction.
- In the Amount column, enter the amount to be allocated to the additional transaction.
- In the other columns, enter any VAT Codes, cost centers and other accounting data to be transferred to the additional rows.
In the rent example, the two !RuleSplit rows contain the amounts of 500 and 50, with their respective revenue accounts. You can also specify the cost center associated with the tenant.

Fixed amounts in Rules on multiple rows
Important: the amounts specified in the !RuleSplit rows are fixed. It is currently not possible to use formulas to calculate them automatically based on the amount of the imported bank transaction.
In the example, the Rule is set up for an incoming payment of 550. If the actual amount received is different, you must check and complete the transaction manually.
Editing Rules in the Recurring transactions table
You can edit, delete or create new Rules directly in the Recurring transactions table, even when the existing Rules were created using the Apply rules dialog.
You can also create new Rules in advance to automate bank transactions that you expect to import in the future.
Setting a description different from the imported one (Notes column)
When you import bank transactions, Banana Accounting transfers the original text from the bank statement to the Description column of the Transactions table. These descriptions are often very detailed.
Rules do not allow you to automatically change the original description of imported transactions.
However, you can use the Notes column of the Recurring transactions table to prepare an alternative description, which can later be copied to the Description column of the Transactions table.
Important: if you already use the Notes column for other notes, you can use a custom column, as explained in the next section.
How to proceed
1. Enter the alternative description in the Rule
- Open the Recurring transactions table.
- Display the Notes column using the Data > Columns setup menu, enabling the display of the Notes column.
In the Notes column of each relevant Rule, enter the text you want to use as the description in the Transactions table.
2. Import the bank transactions and apply the Rules
- Import the bank transactions and apply the Rules.
- In the Transactions table, display the Notes column using the Data > Columns setup menu.
- The program automatically transfers the alternative descriptions defined in the Rules of the Recurring transactions table to the Notes column.

3. Manually replace the original description
- For each relevant transaction, copy the text from the Notes column and paste it into the Description column, replacing the original text imported from the bank. The following image shows the transactions after the descriptions have been manually replaced.

Setting a description different from the imported one – Custom column
In the Recurring transactions table, you cannot add custom columns directly. To use a custom column in the Rules, you must first add it to the Transactions table. The new column will also be available in the Recurring transactions table. You can then use it to store an alternative description to the original description of the imported bank transaction, without using the Notes column.
The procedure is the same as described in the section Setting a description different from the imported one – Notes column.
Important: the alternative description is transferred to the custom column when you apply the Rule. To replace the original bank transaction description, you must manually copy it to the Description column of the Transactions table.
Creating the new year file with the Rules
When you create the file for the new accounting year using the Actions > Create new year command, Banana Accounting automatically transfers the Rules stored in the Recurring transactions table to the new file. You can therefore continue to use the Rules for bank imports in the new year, without having to recreate them.
However, it is advisable to check that the accounts, VAT Codes and other references used by the Rules are still valid for the new accounting year.
Copying Rules between accounting files
If you manage several similar accounting files, for example for clients with similar characteristics, you can reuse previously created Rules, without having to set them up again.
When the accounting files have the same chart of accounts, or a compatible structure, you can copy the Rules from the Recurring transactions table of one file to that of another.
How to copy Rules
- Open the source file, which contains the Rules to be reused.
- Display the Recurring transactions table using the Actions > Recurring transactions > Recurring transactions table menu.
- Select the rows of the Rules you want to copy.
- Copy the rows using the Edit > Copy rows command, or the Ctrl + C keyboard shortcut.
- Open the destination file and display the Recurring transactions table.
- Paste the Rules using the Edit > Insert copied rows command, or Ctrl + V.
Important: before copying, check that the columns are arranged in the same order in both files. After copying, check that the accounts, VAT Codes and other references used by the Rules are also valid in the destination accounting file.
Creating a Rules library
You can also create a dedicated accounting file to use as a Rules library.
In this file, you can collect the Rules you use frequently and copy them to new accounting files when needed.
This allows you to reuse previously defined transaction criteria, avoiding the need to recreate the same Rules and maintaining greater consistency between similar accounting files.