How to Calculate Target Dates by Urgency with Excel Formulas
Question details
The user needs an Excel formula to automatically calculate deadline dates based on a starting date and corresponding urgency categories.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking project or referral deadlines where target dates vary based on specific assigned urgency levels (e.g., 2 days, 2 weeks for ASAP, and 6 weeks for Routine).
- Observed behavior
- Requires an automated method to add specific numbers of days (2, 14, or 42) to a start date depending on text values in another column, accounting for potential accidental spaces in the text.
Ensure your referral date column contains valid date formats rather than text. Also, identify the exact text labels used for your urgency levels so the formula conditions match your data perfectly.
Use a Nested IF Formula with TRIM and LOWER Functions
This approach handles multiple urgency conditions and automatically cleans up accidental spaces or capitalization issues to ensure accurate calculations.
When dealing with user-entered text data like 'Routine' or 'ASAP', spaces might accidentally be added. Wrapping the cell reference in TRIM removes those extra spaces, while LOWER standardizes everything to lowercase for an exact match.
Click on cell M2, which is the first cell in your target date column.
Type the following formula: =IF(E2="","",E2+IF(LOWER(TRIM(I2))="routine",42,IF(LOWER(TRIM(I2))="asap",14,IF(LOWER(TRIM(I2))="2 day",2,0))))
Press Enter. Right-click the cell, select 'Format Cells', and choose 'Date' to display the result properly instead of as a serial number.
Click and hold the small square at the bottom-right corner of cell M2, and drag it down the column to apply the calculation to the rest of your data.

Easily Manage Deadlines and Formulas with WPS Spreadsheet
Calculate target dates, use advanced nested IF formulas, and track your urgency deadlines seamlessly using WPS Office. It provides full compatibility with Microsoft Excel functions in a lightweight, user-friendly interface.
- 1. Open your tracker in WPS: Launch WPS Spreadsheet and open your project or referral workbook.
- 2. Apply the calculation formula: Click on your target date cell and paste the nested IF formula.
- 3. Format the date: Use the 'Number Format' dropdown on the Home tab to quickly set the result as a Short Date.
- 4. Drag to fill: Double-click the fill handle in the bottom-right corner of the active cell to instantly fill the formula across your entire dataset.

Frequently Asked Questions
Why does my calculated date show up as a 5-digit number?
Spreadsheet software stores dates as sequential serial numbers. If you see a 5-digit number (like 44567), highlight the column, go to the Home tab, and change the number format from 'General' to 'Short Date'.
Why does my formula return a #VALUE! error?
This usually happens if the starting date in column E is formatted as text rather than a valid date. Select your referral date cells, reformat them as dates, and ensure there are no hidden text characters.
How can I exclude weekends when adding days to the target date?
To calculate deadlines using only working days, use the WORKDAY function instead of standard addition. For example, instead of adding 14 directly, you would adapt the formula to return WORKDAY(E2, 14).




