Separate Debit and Credit Amounts in an Excel Bank Statement
Question details
Separate bank statement amounts into debit and credit columns and calculate the total for each.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A bank statement has transaction amounts in one column, and the user wants separate columns and totals.
- Observed behavior
- Debit and credit amounts should appear in separate columns, with a total for each.
Check that the transaction amounts are stored as numbers and confirm which sign represents a debit on your statement. The example below assumes negative amounts are debits, positive amounts are credits, and the amounts are in B2:B5.
Use IF and SUM to separate and total transactions in Excel
Use row-by-row formulas to split signed amounts into debit and credit columns, then total each column.
Enter Debit in cell C1 and Credit in cell D1.
In C2, enter =IF(B2<0,B2,"") to show negative amounts as debits.
In D2, enter =IF(B2>0,B2,"") to show positive amounts as credits.
Select C2:D2 and drag the fill handle down through row 5, or through the last transaction row.
For this example, enter =SUM(C2:C5) in C6 and =SUM(D2:D5) in D6. Adjust the ranges and total row to match your statement.

Separate bank statement transactions in WPS Spreadsheet
Use IF formulas in WPS Spreadsheet to place debits and credits in separate columns, then use SUM to calculate each total.
- 1. Open the statement: Open WPS Spreadsheet, select Open, and choose your Excel bank statement. Check that the amounts are numeric and identify their sign convention.
- 2. Add debit and credit columns: With amounts in B2:B5, enter Debit in C1 and Credit in D1.
- 3. Split the amounts: Enter =IF(B2<0,B2,"") in C2 and =IF(B2>0,B2,"") in D2, then drag the fill handle down through row 5.
- 4. Add totals: Enter =SUM(C2:C5) in C6 and =SUM(D2:D5) in D6. Adjust the ranges if your statement has more transactions.

Frequently Asked Questions
How do I show debit amounts as positive numbers?
If debits are negative in column B, enter =IF(B2<0,-B2,"") in the debit column and fill it down. The debit total will then also be positive.
What if my bank statement uses positive numbers for debits?
Reverse the conditions: use =IF(B2>0,B2,"") for debits and =IF(B2<0,B2,"") for credits. Confirm the convention against a known transaction first.
Why are zero amounts missing from both columns?
The formulas use <0 and >0, so a zero meets neither condition. If zeros should appear as credits, change the credit condition to B2>=0.
Can I use these formulas in an Excel file opened in WPS?
Yes. Open the XLSX or XLS file in WPS Spreadsheet and enter the same IF and SUM formulas in the appropriate cells.




