Formatting Issues

Use Dynamic Conditional Formatting for Test Scores in WPS Spreadsheet

Bushra ParveenBushra Parveen Nov 12, 2026 870 views

Question details

Create a small number of formula-based conditional formatting rules that evaluate an entire test-score range against minimum and maximum values on another worksheet.

Use Dynamic Conditional Formatting for Test Scores in WPS Spreadsheet
Product
WPS Spreadsheet
Device & OS
not provided
Scenario
The user wants each score in a large range, such as B2:ZZ1000, to use the limits associated with its test column without creating separate formatting rules for every test.
Observed behavior
Scores should display different colors when they are below the minimum, above the maximum, or within the passing range defined for each test.
Before you start

Set up a limits worksheet with one row per test, including the test name, minimum score, and maximum score. Make sure the test names in the score sheet header row exactly match the names in the limits table.

Solution 1Recommended

Apply three XLOOKUP-based rules to the complete score range

Use this method when each test column has its own minimum and maximum score stored in a lookup table on another worksheet.

For example, assume score headers are in row 1, scores begin in B2, and the Limits worksheet stores test names in A2:A100, minimum scores in B2:B100, and maximum scores in C2:C100. Apply each rule to the same full range, such as $B$2:$ZZ$1000.

1
Select the full score range

In WPS Spreadsheet, select the complete score area, such as B2:ZZ1000, then choose Home > Conditional Formatting > New Rule.

2
Create the below-minimum rule

Choose Use a formula to determine which cells to format, enter =AND(ISNUMBER(B2),B2<XLOOKUP(B$1,Limits!$A$2:$A$100,Limits!$B$2:$B$100)), select a red fill, and confirm that the Applies to range is $B$2:$ZZ$1000.

3
Create the above-maximum rule

Choose Home > Conditional Formatting > New Rule again, enter =AND(ISNUMBER(B2),B2>XLOOKUP(B$1,Limits!$A$2:$A$100,Limits!$C$2:$C$100)), choose a yellow or orange fill, and apply it to $B$2:$ZZ$1000.

4
Create the passing-range rule

Add one more formula rule using =AND(ISNUMBER(B2),B2>=XLOOKUP(B$1,Limits!$A$2:$A$100,Limits!$B$2:$B$100),B2<=XLOOKUP(B$1,Limits!$A$2:$A$100,Limits!$C$2:$C$100)), then choose a green fill and apply it to the same range.

5
Check rule order and test the results

Open Home > Conditional Formatting > Manage Rules to verify that all three rules use $B$2:$ZZ$1000. Change a sample score or a limit value to confirm that the formatting updates automatically.

Apply three XLOOKUP-based rules to the complete score range
Keep relative references in the formula: Use B2 and B$1 in the formulas, not $B$2 or $B$1. This lets WPS Spreadsheet evaluate the correct score cell and column header across the full selected range.
WPS Spreadsheet conditional formatting

Highlight Test Scores Automatically with WPS Spreadsheet

WPS Spreadsheet lets you create formula-based conditional formatting rules for a large score range. Use XLOOKUP formulas to retrieve each test's limits from a separate worksheet, then automatically color scores that are below range, above range, or passing.

  1. 1. Create a limits table: In a WPS Spreadsheet worksheet, list each test name with its minimum and maximum score in adjacent columns.
  2. 2. Select the score matrix: Select the score cells, for example B2:ZZ1000, without including the test-name header row.
  3. 3. Add formula-based formatting: Go to Home > Conditional Formatting > New Rule and choose the formula rule option.
  4. 4. Use XLOOKUP formulas: Reference the current column header with B$1 and retrieve the corresponding limits from the limits worksheet with XLOOKUP.
  5. 5. Manage and verify rules: Use Home > Conditional Formatting > Manage Rules to check the shared Applies to range and adjust colors or formulas as needed.
Apply one conditional formatting rule across hundreds of test columns and rows.Use XLOOKUP to match each score column to its test-specific minimum and maximum limits.Update the limits table once and have score colors refresh automatically.Open and edit Microsoft Excel .xlsx score workbooks with compatible spreadsheet formatting.
microsoft office alternative - wps office

Frequently Asked Questions

How do I apply one conditional formatting rule to every test score column?

Select the entire score range first, such as B2:ZZ1000, then create a formula-based rule. Use relative references like B2 for the current score and B$1 for the current test header so the formula adjusts across columns and rows.

Where should I store the minimum and maximum score limits?

Store them on a separate worksheet such as Limits. Put the test name in one column, the minimum score in the next column, and the maximum score in the third column, then reference those columns in XLOOKUP.

Why does the conditional formatting formula use B$1 instead of B1?

B$1 locks the header row while allowing the column to change as the rule moves across the selected score range. Each test column can therefore look up limits using its own header.

How can I prevent blank score cells from being colored?

Add ISNUMBER(B2) to each formula, such as =AND(ISNUMBER(B2),B2<your_lookup_formula). This limits the formatting to cells that contain numeric scores.

What happens when I change a minimum or maximum score in the limits table?

The conditional formatting updates automatically because the formulas retrieve the current values from the limits worksheet. No separate rule is needed for each test column.