Function Problems

Separate Debit and Credit Amounts in an Excel Bank Statement

Natalie TaylorNatalie Taylor Nov 18, 2026 872 views

Question details

Separate bank statement amounts into debit and credit columns and calculate the total for each.

Separate Debit and Credit Amounts in an Excel Bank Statement
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.
Before you start

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.

Solution 1Recommended

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.

1
Add column headings

Enter Debit in cell C1 and Credit in cell D1.

2
Enter the debit formula

In C2, enter =IF(B2<0,B2,"") to show negative amounts as debits.

3
Enter the credit formula

In D2, enter =IF(B2>0,B2,"") to show positive amounts as credits.

4
Fill the formulas down

Select C2:D2 and drag the fill handle down through row 5, or through the last transaction row.

5
Calculate the totals

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.

Use IF and SUM to separate and total transactions in Excel
Check the sign convention: These formulas keep debits negative and leave zero amounts blank. If your statement uses positive values for debits and negative values for credits, reverse the comparison operators in the formulas.
Work with bank statements in WPS

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. 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. 2. Add debit and credit columns: With amounts in B2:B5, enter Debit in C1 and Credit in D1.
  3. 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. 4. Add totals: Enter =SUM(C2:C5) in C6 and =SUM(D2:D5) in D6. Adjust the ranges if your statement has more transactions.
Separate signed transaction amounts with familiar spreadsheet formulasCalculate debit and credit totals with SUMOpen and edit Microsoft Excel XLSX and XLS filesUse a free spreadsheet application with a familiar interface
microsoft office alternative - wps office

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.