Sum Debit and Credit Amounts by Currency and Expense Type in Excel
Question details
Calculate separate debit and credit totals for each currency and expense or transfer type.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The worksheet contains transactions that need to be summarized by both transaction type and currency.
- Observed behavior
- Currency-specific totals cannot be calculated reliably when the currency is identified only by number formatting rather than a dedicated data column.
Make sure every transaction has a numeric value in one Amount column and a currency code, such as USD, INR, or MYR, in a separate Currency column. Use consistent expense, transfer, debit, and credit labels in the Type column.
Use SUMIFS to total each currency and expense or transfer type
Use this method when you want a formula-based summary table that updates automatically as transaction values change.
SUMIFS can total an Amount range only when the Type and Currency criteria are stored in worksheet cells or ranges. Create a helper Currency column first if the source data currently identifies currencies only through number formatting.
Place your data in columns such as Amount, Currency, and Type. For example, keep amounts in A2:A100, currency codes in B2:B100, and expense or transfer types in C2:C100.
In a separate summary area, enter each expense or transfer type down column A, such as Food, Transfer, Debit, or Credit. Enter currency codes across row 1, such as USD in B1 and INR in C1.
Select the first summary result cell, such as B2, and enter =SUMIFS($A$2:$A$100,$C$2:$C$100,$A2,$B$2:$B$100,B$1). Replace the ranges with your actual Amount, Type, and Currency ranges.
Drag the fill handle across the currency columns and down the type rows. Excel adjusts the row and column criteria references to calculate each combination.

Create a PivotTable for currency and transaction type totals
Use a PivotTable when you need an interactive summary that can be rearranged, filtered, or expanded without maintaining formulas.
Summarize Currency and Expense Totals in WPS Spreadsheets
WPS Spreadsheets lets you organize transaction amounts, currency codes, and expense types in separate columns, then calculate each currency-specific total with SUMIFS or analyze the data through a PivotTable. Its familiar spreadsheet layout makes it easy to move an existing Excel workbook and continue working with the same formulas.
- 1. Open the transaction workbook: Launch WPS Spreadsheets and choose Menu > Open to open your Excel .xlsx or .xls transaction file.
- 2. Add a Currency column if needed: Insert a column beside Amount, name it Currency, and enter a consistent code such as USD, INR, or MYR for every transaction.
- 3. Build a SUMIFS summary: Create Type labels in a summary column and Currency labels in a header row, then enter a formula such as =SUMIFS($A$2:$A$100,$C$2:$C$100,$A2,$B$2:$B$100,B$1).
- 4. Analyze results with a PivotTable: Select the data range and use Insert > PivotTable. Place Type in Rows, Currency in Columns, and Amount in Values to display summed totals.

Frequently Asked Questions
Can SUMIFS calculate totals for debit and credit separately?
Yes. Keep Debit and Credit as values in a Type column, then use that column as a SUMIFS criterion. For example, use "Debit" or "Credit" in the summary type cell referenced by the formula.
Why does SUMIFS not recognize the currency shown in a cell format?
SUMIFS evaluates cell values and range criteria, not the displayed number format or currency symbol. Add a Currency column containing values such as USD, INR, and MYR, then use that column as the criteria range.
How do I show expense types as rows and currencies as columns?
Create a PivotTable from the transaction range. In the PivotTable Fields pane, drag Type to Rows, Currency to Columns, and Amount to Values, ensuring the value calculation is set to Sum.
Should debit amounts be entered as negative values?
That depends on how you want net totals reported. Enter debits as negative values if you want credits and debits combined into a net balance; otherwise, keep positive values and summarize Debit and Credit as separate Type categories.




