Formula Errors

How to Calculate Target Dates by Urgency with Excel Formulas

Kushani NimanthikaKushani Nimanthika Oct 21, 2026 869 views

Question details

The user needs an Excel formula to automatically calculate deadline dates based on a starting date and corresponding urgency categories.

How to Calculate Target Dates by Urgency with Excel Formulas
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click on cell M2, which is the first cell in your target date column.

2
Enter the nested IF formula

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))))

3
Format the result as a date

Press Enter. Right-click the cell, select 'Format Cells', and choose 'Date' to display the result properly instead of as a serial number.

4
Fill the formula down

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.

Use a Nested IF Formula with TRIM and LOWER Functions
Formula Breakdown: The initial IF(E2="",""...) prevents the formula from displaying errors or an incorrect date if the starting date cell is empty.

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. 1. Open your tracker in WPS: Launch WPS Spreadsheet and open your project or referral workbook.
  2. 2. Apply the calculation formula: Click on your target date cell and paste the nested IF formula.
  3. 3. Format the date: Use the 'Number Format' dropdown on the Home tab to quickly set the result as a Short Date.
  4. 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.
Fully compatible with Microsoft Excel formulas like IF, TRIM, and LOWER.Fast, lightweight installation suitable for both Windows and Mac.Advanced data formatting tools to manage date calculations easily.Free and highly efficient alternative for professional spreadsheet management.
microsoft office alternative - wps office

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).