Replace an Excel Transaction Amount with Principal and Interest
Question details
Replace or supplement a loan-payment amount from a CSV transaction file with its principal and interest details.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to represent each loan payment as separate columns, a combined text value, or multiple rows.
- Observed behavior
- The desired result is a transaction table that shows the principal and interest portions of each payment in the chosen layout.
Obtain the principal and interest amounts for each payment; the total payment alone does not establish the split. Check that the transaction file and breakdown data share a reliable identifier, and confirm whether fees or other charges are included in the payment amount.
Add principal and interest in separate Excel columns
Use separate numeric columns when you need to calculate or summarize the payment components.
This example assumes transaction IDs are in column A of the transaction sheet. On a sheet named Breakdown, column A contains matching IDs, column B contains principal amounts, and column C contains interest amounts. SUMIFS adds all matching breakdown rows, so check for duplicates and consistent sign conventions.
In Excel, select Data > From Text/CSV, choose the transaction CSV, and load it. Add the breakdown data to a sheet named Breakdown.
Insert a column labeled Principal. In its first data row, enter =SUMIFS(Breakdown!$B:$B,Breakdown!$A:$A,$A2), adjusting the row and columns to match your data.
Insert a column labeled Interest. In its first data row, enter =SUMIFS(Breakdown!$C:$C,Breakdown!$A:$A,$A2), then fill both formulas down for the remaining transactions.
Compare principal plus interest with the original amount, allowing for any fees or sign differences. Use =COUNTIF(Breakdown!$A:$A,$A2) to identify IDs with no match; SUMIFS returns zero when there are no matches.

Combine principal and interest in one Excel cell
Use a labeled text value when the split is mainly for display rather than calculations.
Create separate principal and interest rows with Power Query
Use this layout when a transaction system or report needs one row per payment component.
Split loan payments into principal and interest in WPS Spreadsheet
Import the transaction CSV into WPS Spreadsheet, match each payment to its breakdown, and keep principal and interest in separate numeric columns.
- 1. Open the CSV: Open WPS Spreadsheet and choose Menu > Open to select the transaction CSV. Add the principal and interest breakdown to a sheet named Breakdown.
- 2. Add the component columns: Insert columns labeled Principal and Interest next to the transaction amount. Confirm that both sheets contain matching transaction IDs.
- 3. Match the amounts: If transaction IDs are in column A, enter =SUMIFS(Breakdown!$B:$B,Breakdown!$A:$A,$A2) in the first Principal cell and =SUMIFS(Breakdown!$C:$C,Breakdown!$A:$A,$A2) in the first Interest cell. Adjust the references to your layout and fill the formulas down.
- 4. Verify and save: Compare the component totals with the original payment amounts and check unmatched IDs. Choose Menu > Save As to save an XLSX workbook or export the needed sheet as CSV.

Frequently Asked Questions
Can Excel calculate principal and interest from the payment amount alone?
No. Obtain the split from a loan statement or payment schedule, or calculate it using the applicable loan terms and balance before matching it to the transaction.
Why does SUMIFS return zero for a payment?
The transaction ID may not match, or the matching amounts may total zero. Use COUNTIF on the breakdown ID column to check for a match, and inspect the IDs for differences such as spaces or text-versus-number formatting.
Can I add the combined principal and interest cell as a number?
No. The TEXT and ampersand formula produces a text label. Keep separate numeric Principal and Interest columns and use SUM on those columns instead.
What happens to the formulas when I save as CSV?
CSV stores the displayed data as plain text, not workbook formulas or multiple sheets. Use File > Save As to keep an XLSX copy if you need to retain formulas, then export the required sheet as CSV.




