How to Calculate Loan Percentages by Maturity Date in Excel
Question details
The user needs to calculate the percentage of total loan balances that fall into specific maturity date categories.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Grouping loan balances by the time remaining until maturity (e.g., within 1 year, 1-2 years, etc.) and determining what percentage each group represents of the total loan portfolio.
- Observed behavior
- Needs the correct combination of SUMIFS and EDATE functions to dynamically aggregate loan balances across specific future timeframes based on today's date.
Ensure your maturity dates are formatted as valid dates in Excel and that there are no blank cells or text values in your loan balance column.
Use SUMIFS and EDATE Formulas to Calculate Percentages
Use SUMIFS to aggregate loan balances matching specific date ranges dynamically calculated by EDATE, then divide by the total loan amount to get the percentage.
The EDATE function returns a date that is a specified number of months before or after a starting date. Combined with the TODAY() function, you can dynamically create date thresholds (e.g., exactly 12 months from today).
By placing these EDATE thresholds inside a SUMIFS function, you can sum only the loan balances whose maturity dates fall within the defined periods.
Select an empty cell and enter the formula: =SUMIFS(B2:B100,A2:A100,"<"&EDATE(TODAY(),12))/SUM(B2:B100). This sums balances in B2:B100 where dates in A2:A100 are strictly less than 12 months from today, dividing the result by the total loan value.
In the next cell, enter: =SUMIFS(B2:B100,A2:A100,">="&EDATE(TODAY(),12),A2:A100,"<"&EDATE(TODAY(),24))/SUM(B2:B100). This isolates the 12-to-24-month window.
For loans maturing far in the future, enter: =SUMIFS(B2:B100,A2:A100,">"&EDATE(TODAY(),36))/SUM(B2:B100).
Highlight the cells containing your formula results, navigate to the Home tab on the Excel ribbon, and click the '%' (Percent Style) icon to format the decimal outputs as percentages.

Calculate Loan Maturity Percentages in WPS Spreadsheet
WPS Spreadsheet fully supports advanced functions like SUMIFS, EDATE, and TODAY(), allowing you to easily calculate loan balances, track maturity dates, and manage complex financial portfolios with high efficiency.
- 1. Open Your Dataset: Launch WPS Spreadsheet and open the workbook containing your loan balances and maturity dates.
- 2. Enter the Formula: Input the SUMIFS and EDATE formulas in the summary cells exactly as you would in Microsoft Excel.
- 3. Apply Percentage Formatting: Select the results, go to the Home tab on the top ribbon, and click the Percent icon to display the values accurately.

Frequently Asked Questions
Why is my EDATE function returning a #VALUE! error?
EDATE requires a valid starting date format. If your referenced date cells are stored as plain text rather than date values, EDATE will fail. Select your date column, go to 'Data' > 'Text to Columns', and click 'Finish' to convert text to valid dates.
Can I use EOMONTH instead of EDATE for loan maturity calculations?
Yes, if you want to group maturity dates up to the very last day of a specific month. While EDATE calculates exactly X months from the specific starting date, EOMONTH returns the final day of that future month, which is often preferred for month-end financial reporting.
How do I make the total sum dynamic if I add more rows later?
Instead of limiting your range to B2:B100, you can format your data as an Excel Table (Ctrl+T). This allows your SUMIFS and SUM formulas to automatically expand and include new loan entries without requiring manual formula updates.




