Skip to main content
How-To · 7 min read

How to Clean a Tally or Bank Statement Export in Excel Before You Reconcile

Before matching, give both files the same shape: one header row, one transaction per row, real dates, numbers stored as numbers, separate debit and credit columns and clean keys. Most failed matches are clean-up failures, not missing entries.

Terra Insight
Terra Insight Editorial Team Reconciliation Infrastructure

Content authored by practitioners with experience at Amazon India, Intuit QuickBooks, and the Tata Group. Meet the team →

Published 14 October 2026
Domain expertise
TDS Reconciliation GST Input Credit Platform Settlements NACH Batch Matching Bank Reconciliation Form 26AS Matching ERP Integrations Enterprise Finance Ops
Knowledge Card
Problem

Tally and bank exports fail to match because amounts, dates and keys are stored in different, often text, formats.

How It's Resolved

Strip title and page-header rows, convert Dr and Cr amounts into separate numeric debit and credit columns, turn text dates into real dates, and trim keys, all in formula columns beside an untouched raw sheet.

Configuration

A raw sheet holding the export as downloaded, a clean sheet with formula columns using TRIM, SUBSTITUTE, VALUE and DATE, and an ISNUMBER check column.

Output

Two files with the same shape and data types, ready for lookups, with far fewer false unmatched lines.

Before you match anything, give both files the same shape. That means one header row, one transaction per row, real dates, numbers stored as numbers, separate debit and credit columns, and clean keys with no stray spaces. Most failed matches are clean-up failures, not missing entries.

Every formula below works in Excel 2010 and later, including Microsoft 365.

What goes wrong in Tally and bank exports?

ProblemWhere you see itHow to spot itFix
Dr or Cr suffix on amountsTally ledger exports: “12,500.00 Dr”Amount is left-alignedSplit sign from number (formula below)
Merged title rowsCompany name and period above the headersFilters do not workDelete rows above the header on the copy
Repeated page headersBank PDFs converted to Excel”Date Narration Debit” appears mid-sheetFilter the Date column for the word “Date” and delete
Dates stored as text”05/04/2026” left-aligned=ISNUMBER(A2) returns FALSEDATE with LEFT, MID, RIGHT
Amounts with commas as text”1,25,000.00” will not sumSUM gives 0VALUE with SUBSTITUTE
Narration split over rowsSecond line has no date or amountBlank date cellsJoin to the row above, then delete
Trailing or hidden spacesKeys that look equal do not match=LEN(B2) longer than expectedTRIM, and SUBSTITUTE for CHAR(160)

How do I remove Dr and Cr and convert text to numbers?

Say the Tally amount is in column C, as text like “12,500.00 Dr”.

Debit column:

=IF(RIGHT(TRIM(C2),2)="Dr", VALUE(SUBSTITUTE(SUBSTITUTE(TRIM(C2),"Dr",""),",","")), 0)

Credit column:

=IF(RIGHT(TRIM(C2),2)="Cr", VALUE(SUBSTITUTE(SUBSTITUTE(TRIM(C2),"Cr",""),",","")), 0)

For “12,500.00 Dr” the debit formula removes “Dr” and the comma, leaving “12500.00 ”, and VALUE turns that into the number 12500. The credit formula returns 0.

For a bank amount that is just text with commas, such as “1,25,000.00”:

=VALUE(SUBSTITUTE(TRIM(D2),",",""))

Text dates in dd/mm/yyyy form, such as “05/04/2026” in column A:

=DATE(RIGHT(A2,4), MID(A2,4,2), LEFT(A2,2))

That returns 5 April 2026 as a real date. It needs the text to be exactly ten characters; check with =LEN(A2)=10.

Keys such as cheque numbers or narrations copied from a web page often carry a non-breaking space that TRIM does not remove:

=TRIM(SUBSTITUTE(B2,CHAR(160)," "))

No formulas option: select the column, go to Data, Text to Columns, choose Delimited, click Next twice, set the column data format to Date with DMY, and Finish. Excel converts text dates in place. Do this only on the copy.

Worked example: a 1,250-line statement

An accountant downloads a quarter’s current account statement: 1,250 lines. She tries to match it against the Tally bank ledger and gets 240 unmatched lines.

She checks the data types first:

  • =ISNUMBER on the date column: 38 rows return FALSE. They are text dates from one page of the converted PDF.
  • =ISNUMBER on the amount column: 112 rows return FALSE. They carry commas and a trailing space.
  • The Tally side shows “Dr” and “Cr” on every amount.

She adds the clean-up columns above, then re-runs the match on the clean columns. Unmatched lines fall from 240 to 60. Those 60 are real reconciling items.

Real reconciling itemLinesAmount
Cheques issued, not yet presented41₹6,84,300
Deposits in Tally, not yet credited9₹2,15,000
Bank charges and GST on charges not booked8₹4,720
UPI receipts missing from Tally2₹18,500
Total60₹9,22,520

Check: 41 plus 9 plus 8 plus 2 is 60 lines. ₹6,84,300 plus ₹2,15,000 is ₹8,99,300; add ₹4,720 for ₹9,04,020; add ₹18,500 for ₹9,22,520.

The 180 lines that “matched after cleaning” were never differences. They were formatting. A typical example: the bank showed “1,25,000.00 ” as text and Tally showed “1,25,000.00 Dr”; after cleaning, both became the number 125000 and matched.

How do I keep the original untouched and repeat this every month?

  1. Keep a sheet called Raw and paste each export into it exactly as downloaded.
  2. Keep a sheet called Clean where every column is a formula pointing at Raw.
  3. Add a check column, such as =AND(ISNUMBER(E2), ISNUMBER(F2)), and filter for FALSE before you match.
  4. Next month, clear Raw, paste the new export, and Clean recalculates.
  5. Save the workbook under the period name, for example “HDFC CA Sep 2026”.

If your exports change layout often, Power Query (Excel 2016 and later) can record these steps once and replay them when you refresh.

Next, read how to reconcile a vendor’s statement with your ledger in Excel. Once the file is clean, you can pull the UTR out of the narration with the bank narration parsing workbook. Tally users should also see Tally Prime reconciliation automation and Tally bank reconciliation.

TransactIG reads bank statements and matches each line to your books, with an exception queue and audit-ready exports, so the clean-up step is handled before matching.

Primary reference: ICAI (The Institute of Chartered Accountants of India) — whose study material on bank reconciliation assumes the cash book and bank statement are compared line by line, which needs both records in a comparable form..

Frequently Asked Questions

Why does Excel not add up my amounts column?
The amounts are probably stored as text, often because of a Dr or Cr suffix, commas, or a leading space. Convert them to numbers with VALUE and SUBSTITUTE, or with Text to Columns.
How do I tell if a date is real or text?
Use =ISNUMBER(A2). A real Excel date is a number, so it returns TRUE. Text that only looks like a date returns FALSE.
Which Excel versions support these formulas?
TRIM, SUBSTITUTE, VALUE, DATE, LEFT, MID, RIGHT and ISNUMBER work in every current Excel version, including Excel 2010 and later. Text to Columns is also available in all of them.
Should I edit the original export?
No. Keep the original as downloaded on its own sheet and do the clean-up on a copy or in formula columns, so you can always show what the bank or Tally gave you.
Can I make the clean-up repeatable?
Yes. Paste each month's export into the same raw sheet and let the formula columns recalculate. Power Query, available in Excel 2016 and later, can also record the steps and replay them on refresh.

See how TransactIG handles reconciliation for your industry

Configuration takes 2–4 weeks. No code development required. ISO 27001:2022 certified.