URL / CRM / Accounting

How to merge Debit and Credit into one Amount for Xero

2026-06-21
Task

A bank export has separate Credit and Debit, while Xero needs one Amount column: income positive, expenses negative.

Short answer

Create Amount from credit; if debit is filled, replace the value with debit and add a minus sign at the beginning.

How to do it in Eofferix

  1. Upload the bank table and open the table editor.
    Xero Amount built from credit and debit in Eofferix
    The preview shows Credit as positive Amount and Debit as negative.
  2. Create Amount from credit. Add a rule: if debit is not empty, replace the value with {debit}.
    Rules for building Amount for Xero
    If debit is filled, the value is taken from it and receives a minus sign.
  3. In the next rule, if debit is not empty, add - at the beginning.
  4. Keep date and description as separate columns and save the Xero template.

Before / after

The data below is a training example and does not belong to real user files.

Before

source data
datedescriptionCreditDebit
2026-06-01Client payment1250.00
2026-06-02Bank fee15.00
2026-06-03Subscription79.00

After

result
datedescriptionAmount
2026-06-01Client payment1250.00
2026-06-02Bank fee-15.00
2026-06-03Subscription79.00

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up