Calculation Issues

How to Calculate Future Due Dates and Apply Status Colors in Excel

Steve KSteve K Nov 10, 2026 868 views

Question details

The user needs to calculate a due date exactly three months after a given service date, ensure the result is blank if the service date is empty, and apply color coding based on quote status and time remaining.

How to Calculate Due Dates and Apply Status Colors in Excel
Product
Excel
Device & OS
not provided
Scenario
Tracking service due dates and quote statuses using automated date calculations and visual color cues.
Observed behavior
The target column needs to remain blank when the source date is missing and dynamically change colors based on specific status conditions such as quote sent, overdue, or approaching.
Before you start

Ensure your source column containing the service dates is formatted as "Date". Take note of the exact column letters for your service dates and quote statuses before applying formulas and conditional formatting.

Solution 1Recommended

Calculate Due Dates and Apply Conditional Formatting Rules

Use a combination of the IF and EDATE functions to handle empty cells, then apply formula-based conditional formatting to color code statuses automatically.

The EDATE function is perfect for adding a specific number of months to a date. By wrapping it in an IF function, you prevent Excel from displaying erroneous dates or errors when the service date cell is empty. Afterward, formula-based conditional formatting allows you to check values in other columns (like a quote status) to highlight the due dates accordingly.

1
Enter the date calculation formula

Select cell D2 (your due date column) and enter =IF(C2="","",EDATE(C2,3)). This formula adds exactly 3 months to the date in C2, but leaves D2 completely blank if C2 is empty. Drag the fill handle down to apply this formula to the rest of column D.

2
Start a new conditional formatting rule

Select your entire range of due dates (e.g., D2:D100). Go to the Home tab on the ribbon, click 'Conditional Formatting', and select 'New Rule' from the dropdown menu.

3
Apply status color formatting

In the dialog box, choose 'Use a formula to determine which cells to format'. Enter =$E2="Yes" (assuming column E holds your quote status). Click the 'Format' button, choose a green fill color, and click OK to apply the rule.

4
Add rules for overdue and approaching dates

Repeat the 'New Rule' process to add more conditions. For overdue dates, use the formula =$D2<TODAY() and format it as red. For approaching dates, use =$D2-TODAY()<=30 and format it as yellow.

Calculate Due Dates and Apply Conditional Formatting Rules
Manage Rule Priority: If multiple conditions might be true at once (e.g., a quote is sent but the date is also approaching), you can manage rule priority in the 'Conditional Formatting' > 'Manage Rules' dialog. Use the up and down arrows to ensure the most important color displays on top, and check 'Stop If True' if necessary.
Calculate Dates Automatically

Easily Manage Dates and Conditional Formatting with WPS Spreadsheet

WPS Spreadsheet provides a robust set of formulas, including IF and EDATE, along with an intuitive Conditional Formatting tool, allowing you to seamlessly track deadlines and visually manage your data.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your document containing the service dates.
  2. 2. Apply the date formula: Enter your =IF(C2="","",EDATE(C2,3)) formula in the due date column to calculate future dates automatically and drag to fill.
  3. 3. Access conditional formatting: Highlight the calculated due dates, navigate to the Home tab, and select Conditional Formatting > New Rule.
  4. 4. Set color rules: Choose the formula option, enter your status condition (e.g., =$E2="Yes"), set your desired fill color, and click OK to apply the visual tracking.
100% compatible with Microsoft Excel formulas and conditional formattingIntuitive conditional formatting rule manager with live previewLightweight application that runs smoothly on low-resource devicesFree built-in templates for project and task tracking
microsoft office alternative - wps office

Frequently Asked Questions

Why is the EDATE function returning a #NAME? error?

This error occurs if the function name is misspelled. Ensure you typed EDATE correctly. In older versions of Excel (prior to 2007), the Analysis ToolPak add-in must be enabled to use EDATE.

How can I change the calculation from 3 months to a specific number of days?

If you want to add an exact number of days instead of months, you can use basic addition. Replace the EDATE formula with =IF(C2="","",C2+90) to add exactly 90 days to the service date.

Why is my conditional formatting coloring the wrong rows?

This usually happens due to incorrect relative and absolute cell references. When entering your conditional formatting formula, make sure you lock the column reference with a dollar sign (e.g., $E2) but leave the row reference relative (no dollar sign before the 2) so it applies correctly as it moves down the column.

How do I remove or edit existing conditional formatting rules?

Go to the Home tab, click Conditional Formatting, and select 'Manage Rules'. From there, you can view, edit, change the order of, or delete any rules applied to your current selection or the entire worksheet.