Formula Errors

How to Use an Excel Formula for Loan Repayment Based on a Drop-Down Selection in WPS Office

Steven ParkerSteven Parker Nov 13, 2026 869 views

Question details

The user needs a WPS Office spreadsheet formula for cell C2 that calculates an annual student-loan repayment from the gross salary in A2 and the repayment plan selected in B2, applying the correct earnings threshold and repayment percentage, or returning zero when no plan condition is met.

How to Use an Excel Formula for Loan Repayment Based on a Drop-Down Selection in WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Calculating annual student loan repayments using a salary cell and a repayment-plan drop-down list.
Observed behavior
The formula should return the annual repayment amount for Plan 1, Plan 2, Plan 4, Plan 5, or Postgraduate Loan when the salary exceeds the corresponding threshold, otherwise zero.
Before you start

Make sure A2 contains a numeric gross annual salary and B2 contains one of the exact dropdown values: “Plan 1”, “Plan 2”, “Plan 4”, “Plan 5”, or “Postgraduate Loan”. If the dropdown is not yet created, add it with Data > Validation before entering the formula.

Solution 1Recommended

Use the Nested IF Formula in C2 to Calculate the Repayment

Use this solution when you want to keep the calculation in a single formula and return zero automatically when the selected plan does not apply.

The formula checks the plan in B2 and the salary in A2 against each plan threshold. When the salary is above the threshold, it multiplies the salary by the plan’s repayment rate; otherwise it continues to the next condition and finally returns 0.

1
Select cell C2

Click cell C2 in your WPS Office spreadsheet where the repayment result should appear.

2
Enter the nested IF formula

Type or paste this formula into C2: =IF(AND(B2="Plan 1",A2>22015),A2*0.09,IF(AND(B2="Plan 2",A2>27295),A2*0.09,IF(AND(B2="Plan 4",A2>27660),A2*0.09,IF(AND(B2="Plan 5",A2>25000),A2*0.09,IF(AND(B2="Postgraduate Loan",A2>21000),A2*0.06,0)))))

3
Press Enter and verify

Press Enter to apply the formula, then change B2 to another plan or A2 to a different salary to confirm the result updates correctly.

Use the Nested IF Formula in C2 to Calculate the Repayment
Formula result: If B2 contains an exact plan name and A2 is above the plan threshold, C2 shows the annual repayment. If not, C2 shows 0.

Calculate Loan Repayment Formulas in WPS Office Spreadsheets

WPS Office Spreadsheets supports Excel-style formulas such as nested IF, AND, and data validation dropdowns, so you can build the repayment calculator directly in WPS Office without switching to Microsoft Excel.

  1. 1. Open WPS Office Spreadsheets: Launch WPS Office and create a new spreadsheet or open your existing .xlsx loan repayment workbook.
  2. 2. Set up the salary and plan cells: Enter the annual gross salary in A2 and create a repayment plan dropdown in B2 using Data > Validation.
  3. 3. Enter the repayment formula: In C2, paste the nested IF formula and press Enter.
  4. 4. Test the calculator: Change the dropdown selection in B2 and adjust A2 to confirm that C2 returns the correct repayment or zero.
Use Excel-compatible formulas like IF, AND, and dropdown validation in WPS Office.Open and save .xlsx and .xls files with full Microsoft Excel compatibility.Free spreadsheet tools for salary and loan repayment models.Lightweight interface with familiar Excel-style menus and formula editing.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the repayment formula return 0 even when I selected Plan 2?

Usually because B2 text does not exactly match the formula plan name or A2 is not above the Plan 2 threshold of 27295. Check for extra spaces and use Data > Validation to inspect the dropdown list values.

Can I use this formula in WPS Office on Windows and Android?

Yes. WPS Office Spreadsheets supports IF, AND, and nested formulas on Windows, macOS, Android, and iOS. The behavior is the same as entering the formula in the formula bar.

How do I create the repayment plan dropdown in B2?

Select B2, click Data > Validation, choose List, and enter Plan 1,Plan 2,Plan 4,Plan 5,Postgraduate Loan as the source, then apply.

What should I change if my salary is monthly instead of annual?

Convert the monthly salary to annual gross salary by multiplying by 12 or adjust the formula thresholds accordingly; the built-in formula assumes A2 is the annual gross amount.

Can I edit the repayment percentages in the formula?

Yes. Replace 0.09 or 0.06 in the formula with the required decimal rate, for example 0.10 for 10%, and save the workbook as .xlsx to retain Excel compatibility.