Apply Excel Conditional Formatting for a Time Difference Under 10 Minutes in WPS Office Spreadsheets
Question details
The user wants to automatically highlight column G when the time difference between two referenced cells, such as H1 and G1 or G1 and F1, is less than 10 minutes.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- The user is working with a WPS Office spreadsheet that contains time values and needs a conditional formatting rule to flag intervals shorter than 10 minutes.
- Observed behavior
- Column G should be highlighted automatically when the calculated time difference is less than 10 minutes.
Verify which two cells contain the times you want to compare and confirm both cells are formatted as time values. If your data is in different columns or rows, adjust the cell references in the formulas below accordingly.
Use a Formula-Based Conditional Formatting Rule for a Time Difference Under 10 Minutes
Use this method when you want WPS Office Spreadsheets to automatically highlight column G based on a time difference between two time cells.
This method uses a formula-based conditional formatting rule. The key is to use absolute references if the comparison cells are fixed, such as $H$1 and $G$1, and to use TIME(0,10,0) so the 10-minute threshold is evaluated as a time value rather than a decimal.
Click the first cell in column G, such as G1, and drag down to select all cells you want to highlight automatically.
Go to the Home tab, click Conditional Formatting, and choose New Rule.
In the New Formatting Rule dialog, select Use a formula to determine which cells to format.
In the formula box, enter =$H$1-$G$1<TIME(0,10,0) if the time difference is between H1 and G1. If the comparison is between G1 and F1, enter =$G$1-$F$1<TIME(0,10,0).
Click Format, choose your highlight color or font style, then click OK to save the rule.

Apply a Time-Difference Conditional Formatting Rule in WPS Office Spreadsheets
WPS Office Spreadsheets supports formula-based conditional formatting, so you can highlight column G automatically whenever the time difference between H1 and G1 is under 10 minutes using Excel-compatible formulas.
- 1. Open your workbook in WPS Office Spreadsheets: Launch WPS Office and open the workbook that contains the time values in columns G and H or F and G.
- 2. Select the target column G range: Select the cells in column G that should be highlighted automatically when the condition is met.
- 3. Create a formula-based conditional formatting rule: Go to the Home tab, click Conditional Formatting, click New Rule, choose Use a formula to determine which cells to format, and enter =$H$1-$G$1<TIME(0,10,0) or =$G$1-$F$1<TIME(0,10,0) depending on which columns contain the times.
- 4. Apply the highlight format: Click Format, select the desired highlight style, and confirm the rule to see column G update automatically.

Frequently Asked Questions
Why does my conditional formatting rule not highlight cells when the difference is under 10 minutes?
Check that the time cells are not stored as text, that the rule is applied to the correct column G range, and that the formula uses the correct references, such as =$H$1-$G$1<TIME(0,10,0) or =$G$1-$F$1<TIME(0,10,0).
Can I apply this formatting to multiple rows instead of only row 1?
Yes. Select the entire range in column G and use a formula with row-relative references, such as =$H1-$G1<TIME(0,10,0), so each row compares its own H and G cells.
Does WPS Office support Excel conditional formatting formulas like TIME(0,10,0)?
Yes. WPS Office Spreadsheets supports formula-based conditional formatting and Excel time functions, and you can open and save .xlsx workbooks while keeping the formatting rules.
How do I highlight the entire row if the time difference is under 10 minutes?
Select the row range you want to format, create the same formula-based rule, and use row-relative references such as =$H1-$G1<TIME(0,10,0). The formatting will apply to all selected columns in that row.




