How to Automatically Calculate Dates and Highlight Deadlines in Excel
Question details
The user needs to calculate a deadline by adding 14 days to a received date and apply conditional formatting to highlight dates due within two days for incomplete jobs.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking project timelines and upcoming deadlines based on received dates and job statuses.
- Observed behavior
- A need to automatically compute the due date and visually flag urgent items that are not yet marked as completed.
Ensure your worksheet is organized with clear columns for 'Date Received', 'Date Required', and 'Job Status', and that the received dates are formatted properly as dates.
Use Formulas and Conditional Formatting to Track Deadlines
Combine a date addition formula with a logical AND conditional formatting rule to automate your deadline tracking.
By using the IF function, you can automatically calculate a future date based on a starting date. Pairing this with conditional formatting allows you to visually flag tasks that are approaching their deadline and are not yet completed.
Assuming 'Date Received' is in column A, select cell B2 (under 'Date Required') and enter the formula: =IF(A2<>"",A2+14,""). This adds 14 days to the received date if the cell is not empty.
Click the fill handle at the bottom-right corner of cell B2 and drag it down to fill the formula for the rest of your rows.
Select the range of your required dates (e.g., B2:B100). Go to the Home tab, click 'Conditional Formatting', and select 'New Rule'.
Choose 'Use a formula to determine which cells to format' and enter this formula: =AND(B2<>"",B2-TODAY()<=2,B2-TODAY()>=0,C2<>"Completed"). This checks if the date is within 2 days from today and the job status in column C is not 'Completed'.
Click the 'Format' button, go to the 'Fill' tab, select a prominent color like red, and click 'OK' to apply the rule.

Calculate Dates and Highlight Deadlines in WPS Spreadsheet
Easily track project timelines and automate your due date calculations using WPS Spreadsheet. It supports all standard Excel date formulas and conditional formatting rules perfectly, allowing you to manage your tasks efficiently.
- 1. Open your tracker: Launch WPS Spreadsheet and open your project tracking document.
- 2. Enter the date formula: Select the target deadline cell and input the formula =IF(A2<>"",A2+14,"") to calculate the due date.
- 3. Create a new formatting rule: Navigate to the Home tab, click 'Conditional Formatting', and select 'New Rule'.
- 4. Apply the deadline logic: Select 'Use a formula to determine which cells to format', enter your tracking formula, and set the fill color to red.

Frequently Asked Questions
How can I change the number of days added to the received date?
Simply modify the '+14' in the formula =IF(A2<>"",A2+14,"") to your desired number of days. For example, change it to '+30' if you need a 30-day deadline.
Why is my conditional formatting highlighting empty cells?
This happens if the rule doesn't explicitly check for blank cells. Ensure your conditional formatting formula includes B2<>"" at the beginning of the AND function to ignore empty cells.
Can I highlight overdue dates instead of upcoming ones?
Yes, you can adjust the conditional formatting formula to check if the date has already passed. Use a formula like =AND(B2<>"",B2<TODAY(),C2<>"Completed") to highlight tasks that are overdue.




