How to Display Dynamic Monthly Credit Card Payments by Date in Excel
Question details
The user needs to retrieve and display the correct monthly payment from a debt schedule onto a main worksheet based on matching dates and card identifiers.

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Tracking credit card debt payments across multiple months where payments may roll over or change as cards are paid off.
- Observed behavior
- The main worksheet must dynamically reflect the exact payment amount for a specific card on a specific date from a master debt schedule.
Verify that the date headers in both your Main Worksheet and your Debt Schedule are formatted as actual Excel date values rather than plain text strings, and ensure your card identifiers match exactly.
Use a Two-Way XLOOKUP Formula
Retrieve the exact payment amount by looking up both the card identifier row and the specific date column simultaneously.
A two-way XLOOKUP (nested XLOOKUP) allows you to search for a value at the intersection of a specific row and column. This is perfect for pulling data from a matrix, like a debt schedule containing rows of credit cards and columns of monthly dates.
Click on the first empty cell in your Main Worksheet where you want the dynamic monthly payment to be displayed.
Type the formula =XLOOKUP($A6,'Debt Schedule'!$A:$A,XLOOKUP(J$4,'Debt Schedule'!$1:$1,'Debt Schedule'!$A:ZZ,0),0) into the formula bar.
Replace $A6 with the cell containing your card identifier in the Main Worksheet, and J$4 with the cell containing your date header. Ensure the sheet name 'Debt Schedule' exactly matches your source data tab.
Press Enter to execute the formula, then drag the fill handle across your rows and columns to auto-populate the payments for all dates and cards.

Manage Complex Debt Schedules Easily with WPS Spreadsheet
WPS Office provides advanced formula capabilities, including robust XLOOKUP support, enabling you to build dynamic, automated debt tracking templates without any hassle.
- 1. Open your tracking workbook: Launch WPS Spreadsheet and open your existing debt schedule document.
- 2. Insert your lookup function: Navigate to the Formulas tab to easily insert and manage your two-way XLOOKUP formula for dynamic tracking.
- 3. Save in standard formats: Save your work seamlessly in .xlsx format to retain full functionality and compatibility.

Frequently Asked Questions
Why is my XLOOKUP returning an error even when the dates appear identical?
This commonly occurs when one worksheet stores the date as a true 'Date' value and the other stores it as 'Text'. Select the date headers on both sheets, right-click, choose 'Format Cells', and apply the exact same Date format to ensure they match.
Can I achieve this if my spreadsheet software does not support XLOOKUP?
Yes. You can use an INDEX/MATCH combination instead. For example: =INDEX('Debt Schedule'!$B$2:$Z$100, MATCH($A6,'Debt Schedule'!$A$2:$A$100,0), MATCH(J$4,'Debt Schedule'!$B$1:$Z$1,0)). This performs the same two-way lookup.
What happens to the formula when a credit card is fully paid off?
If your main debt schedule correctly lists the payment as $0 or empty once the card is paid off, the dynamic XLOOKUP will automatically fetch and display that $0 or empty value for subsequent months in your main worksheet.




