Office Settings & Configuration

How to Match a Cell Color to the Worksheet Tab with the Lowest Value in WPS Office Spreadsheets

Natalie TaylorNatalie Taylor Nov 13, 2026 869 views

Question details

The user wants to identify the worksheet that contains the lowest value and automatically fill the result cell with that worksheet tab's color, including tie handling when multiple sheets share the minimum.

Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
The workbook has multiple source worksheets with colored tabs and a comparison sheet that must show which sheet has the lowest value by using the matching tab color.
Observed behavior
The goal state is a result cell that adopts the corresponding worksheet tab color after recalculation, with a clear way to indicate ties or multiple matching sheets.
Before you start

Open the workbook in WPS Office Spreadsheets and identify the source sheets and their current tab colors. If any tab color can change, save a macro-enabled copy and confirm that macros are trusted before using the VBA approach.

Solution 1Recommended

Use conditional formatting with fixed worksheet tab colors

Best when the worksheet tab colors are fixed and you prefer a formula-based, no-macro solution.

A standard spreadsheet formula cannot read a worksheet tab color, so you must create separate conditional formatting rules for each source sheet. Each rule compares the source value to the minimum and applies the intended fill color.

1
Select the result cell and open Conditional Formatting

Select the cell that should display the matching color, then click Home > Conditional Formatting > New Rule.

2
Create a rule for the first worksheet minimum

Choose Use a formula to determine which cells to format and enter a comparison formula such as =B1=MIN(Co1!B1,Co2!B1,Co3!B1,Co4!B1), replacing the references with your sheet names and cells.

3
Set the fill color to the worksheet tab color

Click Format, open the Fill tab, select the color that matches the source worksheet tab, and confirm with OK.

4
Repeat rules for each source worksheet

Create one rule per source sheet using that sheet's value reference and its matching tab color. Open Manage Rules from Home > Conditional Formatting to review or reorder the rules.

5
Handle ties with extra rules or a text label

If multiple sheets can tie for the lowest value, add distinct tie rules with another fill or pattern, or use an adjacent cell with an IF formula that lists all matching worksheet names instead of relying only on color.

Tie handling: Color-only highlighting can be ambiguous when several worksheets tie, so add a text label or distinct tie pattern if equal minimums are possible.
Direct WPS Spreadsheets solution

Apply the lowest-value worksheet tab color with WPS Spreadsheets conditional formatting

You can complete this task directly in WPS Office Spreadsheets without a separate Excel add-in. Use conditional formatting rules linked to the minimum value, or use a macro-enabled workbook to read the current worksheet tab color, so the result cell updates clearly even when ties occur.

  1. 1. Open the workbook: Launch WPS Office and open the workbook that contains the comparison sheet and colored source tabs.
  2. 2. Apply conditional formatting: Select the result cell and click Home > Conditional Formatting > New Rule to create a formula-based rule.
  3. 3. Set the matching fill colors: In the Format Cells dialog, set the fill color for each rule to the corresponding worksheet tab color and confirm with OK.
  4. 4. Add tie handling: Create additional rules for possible ties or use an adjacent cell formula to list all matching worksheet names.
  5. 5. Test the result: Change source values and confirm that the result cell updates to the correct tab color and that tie cases are visible.
Automates result-cell color based on minimum values and worksheet tab colorsSupports .xlsx and macro-enabled .xlsm files for Microsoft Excel compatibilityFamiliar ribbon interface with Home > Conditional Formatting already built inFree, lightweight office suite that handles multi-sheet workbook comparisons
microsoft office alternative - wps office

Frequently Asked Questions

Can a normal spreadsheet formula read a worksheet tab color?

No. Standard formulas cannot read tab colors in WPS Office Spreadsheets or Excel. Use fixed conditional formatting rules, or use VBA with the Tab.Color property in a macro-enabled workbook.

How do I handle multiple worksheets that have the same lowest value?

Create separate conditional formatting rules for each tie combination with distinct fills or patterns, or display the matching sheet names in an adjacent cell with an IF or LET formula. Text labels are clearer than color alone.

Does WPS Spreadsheets support VBA to match a cell to a changing tab color?

In macro-enabled editions, you can use VBA to read the worksheet Tab.Color property and apply it to the result cell. Save the workbook as a macro-enabled file and run the code only when macros are trusted.

What should I do if I do not want to use macros?

Use conditional formatting with one rule per source sheet and assign the fill color manually. This works well when worksheet tab colors are fixed; if tab colors change, the fill colors will not update automatically.