Data Import & Export

Replace an Excel Transaction Amount with Principal and Interest

Anum MushtaqAnum Mushtaq Nov 18, 2026 869 views

Question details

Replace or supplement a loan-payment amount from a CSV transaction file with its principal and interest details.

Replace an Excel Transaction Amount with Principal and Interest
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the transaction file

In Excel, select Data > From Text/CSV, choose the transaction CSV, and load it. Add the breakdown data to a sheet named Breakdown.

2
Add the principal column

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.

3
Add the interest column

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.

4
Check the split

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.

Add principal and interest in separate Excel columns
Keep the original amount until verified: After checking the results, you can remove or hide the original amount column if it is no longer needed.
Work with payment data in WPS Office

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. 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. 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. 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. 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.
Separate principal and interest for calculations and reportingOpen and edit Microsoft Excel XLSX filesImport transaction data from CSV filesUse familiar spreadsheet formulas such as SUMIFS
microsoft office alternative - wps office

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.