Create Rules from the Apply Rules Dialog
The Apply Rules dialog allows you to create and edit Rules directly while importing bank transactions, immediately checking which transactions they will be applied to.
The main advantages are:
- View all imported transactions, divided into incoming and outgoing transactions, with and without Rules.
- Identify applicable Rules, displayed in bold above the corresponding transactions.
- Create, edit or delete Rules directly from the dialog.
- Immediately check the results when you change the conditions of a Rule, such as the description, amount or account.
- Identify duplicate or conflicting Rules, to avoid ambiguity when applying them.
- Choose which Rules to apply, enabling or disabling them as needed.
The following sections explain, step by step, how to create and apply Rules from the Apply Rules dialog.
1. Import bank transactions
To create Rules from the Apply Rules dialog, you must first start importing bank or postal account transactions.
Proceed as follows:
- Select the command Actions > Import to accounting > Transactions.
- Choose the import format and select the bank statement file.
- In the import dialog:
- Account: specify the bank or postal account to which the transactions refer.
- Period: specify the start and end dates of the transactions to be imported.
- Temporary contra account: keep the default value
[CA]or enter a different one. If the account is enclosed in square brackets, it is not posted to the accounts. - Apply Rules: enable this option, available with the Advanced plan of Banana Accounting Plus.
- Confirm with OK.
The following image shows the import dialog with the Apply Rules option enabled.
After confirmation, Banana Accounting opens the Apply Rules dialog, where you can check the imported transactions and create the necessary Rules.
2. Apply Rules dialog
After confirming the import, Banana Accounting opens the Apply Rules dialog, where you can view the imported bank transactions, check existing Rules and create new ones.
The dialog displays:
- Temporary contra account: the default account [CA] or the one specified during import.
- Bank account: the account to which the imported transactions are posted.
- Imported transactions, divided into four groups:
- Incoming transactions without Rules Money In without rules.
- Outgoing transactions without Rules Money Out without rules.
- Incoming transactions with Rules Money In with rules.
- Outgoing transactions with Rules Money Out with rule.
The following image shows how bank transactions are displayed and grouped in the dialog.
This grouping allows you to immediately identify transactions already recognized by the Rules and those for which a new Rule needs to be created.
3. Create new Rules
In the Apply Rules dialog, you can create a new Rule directly from an imported bank transaction.
Proceed as follows:
- Select the transaction for which you want to create a Rule.
- Click the three dots (…) to the right of the transaction.
- Select Add new rule.
The following image shows where to find the command for creating a new Rule.
The Apply Rules, Add Rule dialog opens, where you can define the conditions for recognizing bank transactions and the accounting data to be entered.
Set the matching criteria
In the Description field, the program automatically suggests the text of the selected bank transaction. This text may contain very detailed information, such as invoice numbers, payment references and other specific data.
Important: if you keep the entire original description, the Rule may be too specific and recognize only that transaction, making it unsuitable for subsequent imports.
To create an effective and reusable Rule:
- Remove information that changes with each payment, such as invoice numbers or unique references.
- Keep recurring keywords that allow you to identify the desired transactions, for example:
- Company name or registered business name.
- Legal form or location, if useful for distinguishing the beneficiary.
- Customer, contract or policy number, when it remains unchanged in subsequent payments.
- Other recurring references that identify a specific type of transaction.
Choose the search method
You can use two methods to recognize bank transactions.
Search by phrase
The program searches the bank description for the text sequence specified in the Rule, keeping the words in the same order and without interruptions.
For example:
Best Insurance Contract 892-948
The Rule recognizes transactions containing this text sequence in the same order.
Search by independent words (with +)
By entering the + symbol at the beginning of the search criteria, the program searches for all the specified keywords, even when they appear in a different order or are separated by other words in the bank description.
For example:
+Best Insurance Contract 892-948
The Rule recognizes transactions containing all the keywords Best, Insurance, Contract and 892-948, regardless of their order.
Tip: when you want to distinguish transactions from the same supplier based on the contract, policy or customer number, use the search by independent words. This allows you to recognize transactions even when the bank changes the order of the information in the description.
Important: when the bank description contains contract, policy or customer numbers or other specific references, we recommend entering the
+symbol at the beginning of the search criteria.The + symbol allows the Rule to search for all the specified keywords and numerical sequences, regardless of their order and position in the description of the imported transaction.
The program displays the imported transactions that match the specified conditions and to which the new Rule will be applied. In the example, only one transaction is recognized.
Check that the recognized transactions are correct and confirm with OK.
4. Confirm Apply Rules
After creating a new Rule and confirming with OK, the program returns to the Apply Rules dialog, where you can check:
- The new Rule, identified by the label NEW, which shows the contra account and the other specified accounting data.
- The matching transactions, displayed immediately below the Rule, to which the specified accounting data will be applied.
You can choose which Rules to apply and when to apply them:
- Apply some Rules and continue working on the others.
- Disable the Rules you do not want to apply.
- Exit the dialog and resume your work later.
Apply the Rules
Two main buttons are available in the dialog:
- Apply Rules: the program completes the matching transactions in the Transactions table and saves the new Rules and changes in the Recurring Transactions table. The dialog remains open, allowing you to continue creating and applying other Rules.
- OK: confirms the applied Rules and closes the dialog.
The following image shows the new Rule and the recognized transactions in the Apply Rules dialog.
Undo changes
After closing the dialog, the completed transactions are visible in the Transactions table.
If necessary, you can undo the operation:
- From the Edit > Undo menu.
- Using the Undo button (green arrow).
To also undo the import of bank transactions, you must execute the Undo command a second time.
5. Complete transactions with a temporary contra account
After applying the Rules, some imported transactions may still have the temporary contra account [CA], because they do not match any Rule.
To complete these transactions, you can:
- Manually enter the contra account and other accounting data, especially for occasional transactions that do not recur.
- Create new Rules for transactions that you expect to import again, using one of the available methods:
The goal is to complete all imported transactions by removing the temporary contra accounts [CA].
Add accounting information to existing Rules
You can edit existing Rules in the Recurring Transactions table, by adding VAT codes, cost centers, segments and other accounting data.
The additional information will be used the next time the Rules are applied, allowing more accounting data in the imported transactions to be completed automatically.
Auto-completion rules from the Apply Rules dialogue
The Apply Rules window offers an excellent level of control over changes to accounting transactions because it shows a preview of existing rules, with an indication of which transactions match each one and which transactions do not yet match any rules. You then have the option of creating new rules, modifying or deleting existing ones.
▶ Video: Rules for completing imported transactions (Apply Rules dialogue)
The dialogue may be displayed:
- From the Import Transactions dialogue, when the Apply Rules option is checked
Rules are only applied to imported rows
- From the Actions menu > Recurring transactions > Apply rules...
Rules are applied to the entire contents of the Transactions table
The Apply Rules dialogue, coupled with the import of banking data, becomes a crucial tool for setting up all repetitive records. In this dialogue window, when faced with multiple repetitive transactions of the same type, it suffices to set the rule for just one of the transactions, and the rules are automatically applied to all other transactions in the dialogue, eliminating the need to set the rule again.
Once the rules are confirmed, all transactions are listed in the Transactions table, ensuring consistency and accuracy in records of the same type, and speed in accounting for all transactions.

This dialogue box is divided into three sections:
Apply rules to transactions with...
- Temporary contra account:
This field is mandatory.
It filters all imported transactions that contain that specific contra account, e.g. [CA], which was indicated in the Import transactions dialogue. - Account:
Filters all imported transactions that contain a specific account, usually a bank account or [A], which has been indicated in the Import Transactions Dialogue.
The rule-based auto-completion system assumes that once the transactions have been completed, there is no longer any transaction containing the temporary contra account.
Imported data corresponding to rules or not
The window shows all transactions that have temporary contra accounts indicated above (e.g. [CA]). These are grouped in four main sections:
- Incoming transactions with rules
Transactions with positive change of account (credit) and with indication of the rule to which they correspond - Outgoing transactions with rules
Transactions with negative account variation (debit) and with indication of the rule to which they correspond - Incoming transactions without rules
Transactions with positive change of account (credit) and not belonging to any rule - Outgoing transactions without rules
Transactions with negative account variation (debit) and not belonging to any rule
Contextual commands
From the row of a transaction without a rule, a simple click or the three dots (...) to the right, or a right click anywhere on the row, opens a menu allowing you to:
- Add/Edit Rule
- Cancel an existing rule
- Change an overlapping rule

The commands at the bottom of the dialogue
- Expand All/Collapse All: displays or hides the elements of the Transactions.
- Display unused rules: checking this option displays all rules defined in the Recurring transactions table; if the option is not checked, the programme only displays rules that have matches.
- Display rows without rules: if this option is checked, all imported transactions are displayed; if the option is not checked, the programme only shows transactions that match a rule.
- Remove accounts between [ ]: in multi-row transactions, the import account is placed in square brackets [ ] in the detail rows. If this option is activated, the programme removes the import account from the detail rows.
Rules with transactions on multiple rows can only be defined in the Recurring transactions table. - OK: this button applies the active rules and closes the window.
- The temporary contra account is replaced in all transactions that have a match with a rule.
- New or changed rules are also saved in the Recurring Transactions table.
- Cancel: this button closes the window without applying the rules.
- If there have been changes to one or more rules, you will be asked for confirmation before closing the window.
- With this button you cannot undo the Apply Rules command; to do so, you must close this window and use the Undo command from the Edit menu.
- Apply Rules: this button applies the rules without closing the window.
- The temporary contra account is replaced in all transactions that have a match with a rule.
- Rules that are added or changed are saved in the Recurring transactions table.
- If you wish to undo changes, you must close the window and use the Undo command from the Edit menu.
Tips on how to use the Apply Rules window
The most effective way to work with the Apply Rules window is as follows:
- Check that the transactions matching rules are correct.
- Use the Apply Rules button to update the Transactions table with the selected rules.
- Add new rules for the remaining transactions and check that they are applied correctly.
- Use the Apply Rules button again.
- Repeat steps 3 and 4 until all recurring transactions are associated with rules.
Recurring transactions table
Rules are saved and may be edited in the Recurring transactions table.
You can complete or add rules also with transactions on multiple rows in the Recurring transactions table.
As time goes by, you will see that more and more imported transactions will have matches with rules; the more rules you add, the more your accounting work will be reduced.
Apply Rules dialog – Add Rule
From the Apply rules dialogue you may access the Add/Edit rule section as follows:
- By right-clicking on one of the transactions or rules:
- For transactions that already have a rule, you can choose Edit Rule or Delete Rule.
- For transactions that do not have a rule, you can choose Add New Rule.
Add New Rule example
The following example in the dialogue below is an outgoing transaction of the payment of a health insurance.
To add a new rule:
- Right-click on the movement row and choose Add New Rule.
- The dialogue Add rule appears.
- Fill in the fields available.
- Confirm with OK.

Add New Rule dialogue
The Add New Rule dialogue shows the data of the selected transaction from which you are creating the rule.
- Complete the rule with the matching parameters (conditions) and the rule completion parameters.
- All rules are saved in the Recurring Transactions table (rules for completion), where you can also:
- Edit, add and delete rules.
- Add any other column for completion, which is not available in this dialogue (e.g. Notes or DocLink columns).
- Colour the row if you want to highlight the imported transaction.
- Add transactions on multiple rows (SplitRule).

The Rule
- Rule type.
The programme, depending on the type of transaction, if in credit or debit on the bank account, sets the rule as Money in or Money out transaction. - Rule title.
It is optional, it is displayed in the Apply Rule dialogue.
Conditions
These are the elements that are used to check whether there is a match for each individual transaction.
- A match is given if all conditions are found.
- If a match is given, the entry is listed among the transactions with rule.
The description
In the description, enter the text to be searched in the text of the imported transaction. If the text is found the transaction will be considered suitable for applying the rule, if the other conditions are then met.
- Exact word or phrase
- If you write only Best Insurance 982-948 as a condition of the rule, only transactions containing those words in that exact order will be considered matches.
- If you write only Insurance, as a condition of the rule, all entries containing this exact word will be considered matches.
- All words (starting with the "+ "sign)
- If you write +Best Insurance 982-948 as a condition of the rule, all records containing these exact words, in any position, will be considered matches.
All words must be present in the description of the transaction.
The position of the words in the sentence is not relevant.
The "+" sign is not considered in the search.
- If you write +Best Insurance 982-948 as a condition of the rule, all records containing these exact words, in any position, will be considered matches.
- List of words (using |)
- If you enter "coffee|restaurant", the program searches for imported transactions that contain the word "coffee" or "restaurant".
- This mode is useful for identifying multiple categories without having to create separate searches.
- Upper and lower case
When searching for input text, no case difference is made.
The text you enter is applied to both upper and lower case text.
Amount
If you indicate an amount in the rule, only transactions with the same amount, as well as a match in the Description, will be considered as matches.
If you do not indicate any amount, any transaction of any amount that meets all other criteria will be treated as a match.
Account
In this field you will already find by default the account from which you imported the transactions. If you leave the account field empty, all transactions, imported from any account, that meet all other criteria will be considered as matches.
Actions
These are the elements used to complete the transaction row if a match is given.
If the contra account or other items to be completed are not present, you can abort the Apply rules command, add the missing account, and call up the Actions > Recurring transactions > Apply rules... command.
Contra account
Enter the account in your chart of accounts that is to be matched in the rule. In this example, the correct contra account is the Health Insurance account.
VAT
You can already enter in the rule the VAT code that the programme must add to each movement considered as a match.
CC1, CC2, CC3
You can already enter in the rule the Cost Centres that the programme must add to each movement considered as a match.
By confirming with the OK button, the new rule is saved. You will return to the previous window where the imported movements with and without rules are displayed again.
Matching Transactions
This table shows all imported transactions selected in the Apply Rules dialogue, which fall under this rule.
Buttons
- The Delete button, cancels the rule.
- The OK button, saves the rule data.
Be aware though that, until you do not give the command Apply Rules, the new rules won't be saved in the Recurring transactions table.