Skip to content

20% off prompt builders through Nov 22. Discount applied automatically at checkout. See the builders

Split Loan Payments into Principal and Interest with Gemini in Google Sheets

Short answer

Put the lender's loan statement and the loan liability account export in one Google Sheet. Ask Gemini in Sheets to split each payment into interest and principal, using the statement's figures where they exist and IPMT and PPMT formulas where they do not, then tie the schedule to the liability ending balance.

What the source describes

AccountingCoach explains that each loan payment has to be split between interest and principal: in its example, a $2,000 payment is recorded as a $500 debit to Interest Expense, a $1,500 debit to Loans Payable and a $2,000 credit to Cash, and the Loans Payable balance should agree with the principal balance on the lender's loan statement. Google's Sheets help documents IPMT, which calculates the interest part of a payment, and PPMT, which calculates the principal part, for loans with constant payments and a constant rate, and notes that the rate and the number of periods must use the same units. Google's help for Gemini in Sheets says Gemini can create formulas and tables, works best in native Google Sheets files and requires an eligible Google Workspace or Google AI plan. This workflow is record-keeping only.

Result or outcome

AccountingCoach shows the journal entry for a split payment and says the loan liability should agree with the lender's principal balance, and Google's help shows that IPMT and PPMT return the interest and principal parts of each payment, so Gemini's formulas can be checked against the statement line by line.

How to run it

  1. Download the lender's loan statement or payment history for the period, and copy the original amount, rate, term, first payment date and payment amount from the loan agreement into a Terms tab.
  2. Export the loan liability account detail from your accounting software and paste it into a Ledger tab in the same Google Sheet. If either file is .xlsx, save it as Google Sheets first.
  3. Open Gemini in the Sheets side panel, fill in the placeholders and paste the prompt.
  4. Read the Tie-out box. If the schedule matches the lender but not the GL, look for a payment posted entirely to interest or entirely to the loan, or a payment recorded in the wrong month, and fix it with an entry you approve. See Draft Adjusting Journal Entries with Claude.
  5. Keep the schedule with the month's close support and add next month's statement row to it. For formula help, see Write and Fix Spreadsheet Formulas with Gemini in Google Sheets and the Month-end close hub.

Try it yourself

Copyable prompt

This native Google Sheet has three tabs for the loan [lender and loan number]. [Terms]: original principal in B1, annual interest rate in B2, term in months in B3, first payment date in B4, monthly payment in B5. [Statement]: the lender's payment history with Date, Payment, Principal, Interest, Fees and Principal balance (leave Principal and Interest blank when the lender does not show them). [Ledger]: the GL export for the loan liability account [account number] with Date, Reference, Memo, Debit and Credit. Please: 1) Build a Schedule tab with one row per payment: Payment number, Date, Payment, Interest, Principal, Fees and Ending principal. 2) Where the Statement tab shows principal and interest, use those amounts. Where it does not, calculate Interest with IPMT and Principal with PPMT, using the monthly rate (B2 divided by 12) and the term in months, and mark the row CALCULATED. 3) Check that Interest plus Principal plus Fees equals the Payment on every row, and flag any row that does not. 4) Add a Tie-out box: ending principal on the Schedule, principal balance on the latest Statement row, and the GL ending balance from the Ledger tab, with the differences between them. 5) Draft one journal entry per payment for my review: debit Interest Expense, debit the loan liability for principal, debit fees to [fees account], credit [cash account]. Explain each formula in one sentence. Do not change the Statement or Ledger tabs. Do not post anything, and do not comment on tax treatment.

Replace the [bracketed] placeholders. Remove client names, account numbers, and personal data before pasting into any AI tool.

IPMT and PPMT assume a constant rate and equal payments. If your lender calculates interest another way, for example on the days between payments, a calculated row will not match exactly. When the lender shows the split, the statement wins.

What to review

Check at least one CALCULATED row by hand: last month's ending principal times the monthly rate should be close to the interest. Confirm the schedule's ending principal matches the lender's statement before you compare it to the GL, because the statement is the outside evidence. Do not post an entry that plugs a difference you cannot explain.

Related free download: Month-End Close Checklist for Small Business Bookkeepers (Printable checklist (PDF))

Source: AccountingCoach (Recording interest and principal on loan payments); also Google Docs Editors Help (PPMT); also Google Docs Editors Help (IPMT); also Google Docs Editors Help (Collaborate with Gemini in Google Sheets)

See also

Not professional advice. This is general information, not accounting, tax, legal or financial advice. Check AI output yourself and consult a licensed professional for your situation. See our Terms of Use.

This entry summarizes a public source. Features, plans, and availability change, so confirm details with the vendor. Tool names are trademarks of their respective owners.

  • Month-End Close

    Draft Adjusting Journal Entries for Review with Claude

    Anthropic's prompt engineering overview says to start with three things: a clear definition of the success criteria for your use case, some way to test against those criteria, and a first draft prompt you want to improve. It points to Anthropic's prompting best practices for the techniques themselves, from clarity and examples to XML structuring, role prompting, thinking and prompt chaining. It also notes that not every failing result is best solved by prompt engineering. For adjusting entries, the success criteria are easy to write down: every entry balances, uses only accounts on the chart, and names its support.

    Claude

    Claude Docs (Prompt engineering overview)
  • Month-End Close

    Build a Prepaid Expense Amortization Schedule with ChatGPT

    Corporate Finance Institute describes prepaid expenses as amounts paid in one period that are not recognized as expense until a later period, recorded first as assets and then expensed as the benefit is used. Its insurance example is a $24,000 twelve-month policy reduced by $2,000 each month until the prepaid balance is zero. AccountingCoach gives a similar six-month insurance premium example, with one-sixth reported as insurance expense each month and the unused balance left in Prepaid Insurance. OpenAI Academy says ChatGPT can analyze uploaded CSV and XLSX files by writing and running code to clean data, merge columns and spot anomalies. IRS Publication 583 discusses keeping records that support the expenses on the books. It is cited here as a record-keeping pointer only.

    ChatGPT

    Corporate Finance Institute (Prepaid expenses)
  • Reporting and Analysis

    Write and Fix Spreadsheet Formulas with Gemini in Google Sheets

    Google's Docs Editors Help explains that Gemini in Google Sheets can create tables and formulas, generate data analysis and insights, build charts, and perform actions such as creating pivot tables, applying conditional formatting, sorting, filtering and find and replace. Users open the Ask Gemini side panel, describe the formula they need with references to their sheet, and insert or retry the suggestion. When a formula shows an error, users can hover over the cell and click Fix so Gemini reviews the formula and analyzes the issue.

    Google Sheets, Google Gemini

    Google Docs Editors Help
  • Reporting and Analysis

    Build a Budget vs Actual Report in Google Sheets with Gemini

    Google's help page for Gemini in Google Sheets says Gemini can create tables and formulas, generate data analysis and insights, build charts, and perform actions such as conditional formatting, pivot tables, filters and number formats, each shown on a preview card you apply or undo. It works best with native Google Sheets files, so Google says to save an Excel file as Google Sheets first. Inserted charts go on a new tab with their data and do not change when the original data changes, and the conversation history is lost when you reload or reopen the file. The feature requires an eligible Google Workspace or Google AI plan.

    Google Sheets, Google Gemini

    Google Docs Editors Help (Collaborate with Gemini in Google Sheets)