Key points
- Define overdue and completed states rather than comparing dates alone.
- Use conditional formatting as a visual cue alongside a written status.
- Test blank dates, today, completed tasks and new records; highlighting is not follow-up.
What should count as overdue?
Define the business rule first, for example “due before today and not completed”. Decide whether tasks due today are overdue and how cancelled tasks are handled. Otherwise completed tasks may be highlighted, encouraging people to ignore the cue. This is a business-rule decision, not a policy the tool determines for you.
How should dates and states be prepared?
Use separate due-date and status columns. Confirm dates are values that can be compared, not arbitrary text that merely looks like a date. Standardise status labels and identify tasks with no due date. Do not automatically treat blanks as overdue or invent dates just to make the colouring work.
How can conditional formatting be set up?
Microsoft’s conditional-formatting guidance describes formulas returning TRUE or FALSE and the need to manage relative and absolute references. In desktop Excel, use a formula-based rule under Conditional Formatting; menus differ by version and in Excel for the web. Start with a bounded range in a test copy and check which rows the Applies to range covers.

What is a concrete starting rule?
Invented example: B is the due date, C is status and data starts on row 2. Overdue means a valid date before today with a status other than “已完成” (completed). An English-function example is =AND(ISNUMBER($B2),$B2<TODAY(),$C2<>"已完成"), initially applied to A2:C20. This is an untested example: it does not handle extra states such as cancelled, and separators may depend on regional settings. Do not paste it into a live sheet without testing. This assumes column B has already been checked to contain correct dates: ISNUMBER only tests whether a value is numeric, not whether it is a valid business date. Zero or another inappropriate number must be corrected before using this rule.
Which cases need checking?
Use invented records: yesterday and incomplete should highlight; today should not under this definition; yesterday but completed should not; a blank date should not; a text date or an invalid numeric date requires data correction rather than being treated as a pass. Add a record outside the range to check whether the rule needs extending. This article has not run an Excel test; these are expected results, not a passed test report.
What is needed beyond a colour?
Keep an owner, next action and update date so colleagues know who is responsible. Colour is not a substitute for a written state and does not prove notification, contact or completion. If rules overlap, record their priority and recheck the display. Use authorised test data, and keep external chasing within the existing approval process.
Frequently asked questions
Must tasks due today be red?
No. Agree the definition first. This example treats only incomplete tasks due before today as overdue.
How should blank dates be handled?
Mark them as needing information or having no deadline; do not assume they are overdue.
Does a disappearing colour prove completion?
No. The date, range or rule may have changed. Check the written status and record.
Will new tasks automatically use the same rule?
Do not assume so. Check the range and the result after adding data.
Can I use colour without a status column?
It is not recommended. Written states are easier to hand over and check, and avoid relying only on colour.
