In this article
You can create Rules directly from the Transactions table, starting from imported bank transactions that you have completed with the necessary accounting data.
With the Create rules from selection command, Banana Accounting uses the selected transactions to create Rules in the Recurring Transactions table.
This method is particularly useful when you want to create multiple Rules at the same time, working directly in the Transactions table that you normally use.
The main advantages
- Work directly in the Transactions table, with all the accounting columns available.
- Create Rules from already completed transactions, with contra accounts, VAT codes, cost centers and other data.
- Create multiple Rules with a single command, by selecting the completed transactions and using Create rules from selection.
- Avoid entering Rules one by one through dialogs or in the Recurring Transactions table.
- Automate subsequent imports: once the matching conditions have been correctly defined, the program uses the Rules to complete new matching transactions.
Important: after creating the Rules, you must check and adjust the descriptions used to recognize transactions. Imported descriptions may contain variable references that would make the Rules too specific.
The following sections explain, step by step, how to create and complete Rules from the Transactions table.
Import transactions
In the Transactions table, import transactions from your bank, postal account or credit card statement.
The imported transactions are displayed in the Transactions table, where you can complete them with the necessary accounting data before creating the Rules.

Complete the imported transactions
In the Transactions table, complete the imported bank transactions by entering the necessary accounting data:
- Contra account: replace the temporary account [CA] with the correct account from the chart of accounts.
- VAT code: enter the VAT code, if necessary.
- Cost centers and other data: complete the relevant columns according to your accounting needs.
The completed transactions will serve as the basis for creating the Rules.
Transactions on multiple rows
If a bank transaction needs to be split across multiple accounts, the program initially imports it as a single transaction, with the total amount and the temporary contra account [CA].
To complete it:
- Remove the temporary contra account [CA] from the imported transaction.
- Insert the additional rows immediately below the transaction.
- For each new row, specify the description, contra account, amount and any VAT codes or cost centers.
The following image shows the completed transactions, including those split across multiple rows.
Create the Rules
After completing the bank transactions in the Transactions table, you can create Rules directly from the selected transactions.
Proceed as follows:
- Select the rows of the completed transactions for which you want to create Rules.
- Right-click the selection and choose Create rules from selection.
Alternatively, use the menu Actions > Recurring transactions > Create rules from selection.
The program creates the Rules in the Recurring Transactions table, copying the data from the selected transactions, including the contra accounts and other accounting information.
Important: the Rules are created using the data from the selected transactions. Before using them in subsequent imports, you must check and complete the matching conditions in the Recurring Transactions table.
Complete the Rules
After creating the Rules from the selection, open the Recurring Transactions table to check and complete the information needed to recognize future transactions.
1. Edit the search description
In the Description column, the program initially copies the text of the imported bank transaction.
Edit this text, keeping only the keywords and references that identify the transaction and removing variable information, such as dates, invoice numbers or individual payment identifiers.
For example, you can use:
- Best Insurance – Searches for this sequence of words in the bank description.
- +Best Insurance 892-948 – Searches for all the specified keywords and numerical sequences, regardless of their order and position in the description.
Important: when using specific references, such as contract, policy or customer numbers, the + symbol at the beginning of the search criteria allows transactions to be recognized even if the order of the information in the bank description changes.
For more details, see the Description condition.
2. Check the Debit and Credit accounts
In the Debit account and Credit account columns, the program copies the accounts from the selected transactions.
In particular, check the following:
- Contra account: check that it is the correct account and change it if necessary.
- Bank account used for the import: if you want the Rule to apply to a specific bank account, the account must be specified without square brackets. If it is enclosed in square brackets, for example [1020], remove the brackets.
- Rule valid for multiple bank accounts: if you want to apply the same Rule to transactions imported from different bank accounts, remove the bank account used for the import from the Rule and leave only the contra account. In this way, the Rule recognizes transactions based on their description, regardless of the bank account they come from.
Important: a bank account enclosed in square brackets is treated as a comment and is not used as the main account for identifying matching transactions.
3. Complete Rules for transactions on multiple rows
For transactions split across multiple rows, the Rule must be set up correctly:
- In the first row, enter empty square brackets [] in the contra account column.
- In the subsequent rows, enter !RuleSplit in the Doc column.
- Check that each row contains the correct contra account, amount and any VAT data or cost centers.
The following image shows the completed Rules in the Recurring Transactions table, including those on multiple rows.

For more information, see the documentation on transactions on multiple rows with !RuleSplit.
Apply the Rules in subsequent imports
The procedure for creating and configuring the Rules only needs to be carried out the first time.
In subsequent imports, the program recognizes transactions that match existing Rules and completes them automatically when the Rules are applied.
For new transactions without Rules, you can:
- Complete the transactions manually, if they are occasional transactions.
- Create new Rules, following the same procedure, to automate future transactions as well.
Identify transactions that still need to be completed
To find imported bank transactions that still have the temporary contra account [CA], use the Filter rows function in the Transactions table, entering the text [CA]. The filter displays transactions that contain this temporary contra account and still need to be completed.
You can then decide whether to complete them manually or create new Rules to automate the recording of similar transactions in subsequent imports.