BankStatementDesk

How to convert a bank statement to Tally XML and import it

Quick answer

Convert the PDF statement to reviewed rows, export Tally XML with your ledger names mapped, then import it in TallyPrime from Gateway of Tally → Import → Vouchers. Create the ledgers first — a voucher that names a missing ledger is rejected.

Begin with the bank statement to Excel converter to get rows you can check, and keep the closing-balance proof beside you at every step below.

In this guide
  1. What a Tally XML file actually contains
  2. Create the ledgers before you convert anything
  3. Convert the statement and review the rows Tally will receive
  4. Export the XML and import it into TallyPrime
  5. A worked example: four statement lines become four vouchers
  6. The five import errors that cause almost every failure

What a Tally XML file actually contains

A spreadsheet stores rows. A Tally XML file stores vouchers. When TallyPrime or Tally ERP 9 imports the file, it does not paste your statement into a grid — it posts accounting entries, one voucher per transaction, into the company books. A payment becomes a Payment voucher, money received becomes a Receipt voucher, and a transfer between two of your own accounts becomes a Contra voucher. Each voucher names the ledgers it debits and credits, carries the date, the amount and the narration, and lands in the Day Book exactly as if someone had typed it in.

That difference explains most failed imports. A CSV can contain a payee Tally has never heard of and nothing complains until you open it. An XML voucher that references a ledger which does not exist in the company is rejected at import time. So the work of a bank statement to Tally XML conversion is only half file-making; the other half is making sure every name in the file already exists in your Tally company, spelled the same way.

Create the ledgers before you convert anything

Open your company and list the ledgers the statement will touch. You need three kinds. First, the bank ledger itself — its name in Tally must match the account name you give the converter, character for character, including spaces in names like “HDFC Bank Current A/c”. Second, a ledger for each regular counterparty or expense head the statement pays: rent, salaries, electricity, supplier names. Third, a home for anything unusual — many bookkeepers keep a “Suspense” or “Bank charges” ledger so a stray line never blocks the whole import.

You do not need a ledger for every one-off payee before you start. Convert first, look at the narrations the statement actually contains, then create the handful of ledgers that repeat. Names cannot be fixed after import without editing vouchers one by one, so ten minutes here saves an hour later.

Convert the statement and review the rows Tally will receive

Start from the reviewed rows, not the raw PDF. Convert the statement with the bank statement to Excel converter, check the extracted table against the PDF, and run the balance proof described in the PDF to Excel conversion guide: opening balance plus deposits minus withdrawals must equal the printed closing balance. Tally will happily post wrong numbers — the import log reports structure, not arithmetic — so this check has to happen before export, while the statement is still beside you.

While reviewing, pay attention to three columns Tally cares about. The description becomes the narration, so trim bank codes you do not want permanently in your books, but keep the reference or cheque number — it is what you will search by later. Keep withdrawals and deposits in separate columns rather than one signed amount; the exporter turns each column into the correct side of the voucher. And confirm the date of a transaction after the twelfth of the month, because a day/month swap posts the entry into the wrong month without any error message.

Export the XML and import it into TallyPrime

From the same reviewed rows, choose the Tally XML export on the conversion tools page and enter the bank ledger name and the ledger mapping you prepared. Download the file and keep it next to the original PDF — the pair is your audit trail. Then import it:

  1. Open the company in TallyPrime and go to Gateway of Tally → Import → Vouchers (in ERP 9: Gateway of Tally → Import Data → Vouchers).
  2. Enter the full path of the XML file and press Enter to start.
  3. Watch the import summary. Tally reports how many vouchers were created and how many were rejected — the two numbers must add up to your transaction count.
  4. Open the Day Book for the statement period and count the entries. Then open the bank ledger and compare its closing balance with the statement.

If some vouchers were rejected, Tally writes the reasons to its import log (calculator panel / Tally.imp file in the program folder). The cause is almost always a ledger name that does not exist, so create or rename that ledger and re-import only the rejected period — not the whole file, or the accepted vouchers will post twice.

A worked example: four statement lines become four vouchers

Take a current account with an opening balance of ₹86,400 on 1 April. The statement shows a NEFT receipt of ₹1,50,000 from a customer, a rent payment of ₹45,000, bank charges of ₹590 and a transfer of ₹25,000 to the same company's savings account. Mapped correctly, the XML produces:

Statement lineVoucher typeDebitCredit
NEFT receipt ₹1,50,000ReceiptHDFC Bank Current A/cCustomer ledger (or Sales)
Rent paid ₹45,000PaymentRent ExpenseHDFC Bank Current A/c
Bank charges ₹590PaymentBank ChargesHDFC Bank Current A/c
Transfer ₹25,000ContraSavings A/cHDFC Bank Current A/c

The closing balance in Tally should read ₹86,400 + ₹1,50,000 − ₹45,000 − ₹590 − ₹25,000 = ₹1,65,810. If the bank ledger shows anything else, one of the four vouchers is missing or doubled, and the Day Book count tells you which before you go hunting through amounts.

The five import errors that cause almost every failure

“Ledger does not exist.” The name in the file and the name in the company differ — often by one trailing space or an abbreviation. Rename in Tally or re-export with the exact name. All vouchers land on one date. The statement's dates were read month-first; check the date column before export, not after. Amounts arrive ten times too large. Indian statements print amounts with lakh-style commas (₹1,50,000); if a comma survives into the XML, some builds read the value oddly — the exporter strips grouping commas, one more reason to export from reviewed rows rather than hand-editing the file. Everything imports twice. The file was imported again after a partial failure; always check the Day Book count before re-importing. Contra entries appear as payments. Transfers between your own accounts were mapped to an expense ledger; mark both accounts as yours during mapping so they post as Contra vouchers and your expense reports stay clean.

Once the import is in, finish in Tally's Bank Reconciliation view: the imported vouchers carry the statement dates, so matching them against the bank's own record is a quick pass, and the reconciled balance should agree with the statement to the rupee. The bank statement reconciliation tool can do the same comparison before import if you want differences explained while the rows are still easy to edit.

Frequently asked questions

Can I import a bank statement CSV into Tally instead of XML?

TallyPrime offers a bank statement import for reconciliation, but it expects the bank's own file layout and only matches entries you have already recorded. To create the entries from a statement, vouchers are the reliable route, and vouchers travel as XML. Converting the statement to reviewed rows first, then exporting Tally XML, gives you both: entries posted and names under your control.

Does the Tally XML export work with Tally ERP 9 as well as TallyPrime?

Yes. The voucher XML structure is shared between ERP 9 and TallyPrime; only the menu path differs slightly (Import Data → Vouchers in ERP 9, Import → Vouchers in TallyPrime). Ledger names must exist in whichever company you import into.

What voucher type should a transfer between my own two accounts use?

A Contra voucher. It debits one bank (or cash) ledger and credits the other, so no income or expense is recorded. If a transfer posts as a Payment, it inflates an expense ledger and the money appears to leave the business when it only moved accounts.

My import created the vouchers but the bank balance is wrong. Where do I look first?

Count the Day Book entries for the period and compare with the statement's transaction count — a missing or doubled voucher is the usual cause. Then check for a date swap that pushed one entry into the neighbouring month. The amounts themselves rarely change in transit; counts and dates are where imports go wrong.