How to Calculate Risk-Based Weeks and Follow-up Dates in Excel
Question details
The user needs to dynamically calculate the number of follow-up weeks based on a risk value and then determine the exact follow-up date by adding those weeks to a start date.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating task or project deadlines based on assigned risk levels using Excel structured table references.
- Observed behavior
- Requires functional formulas to map risk levels to a specific number of weeks and subsequently calculate the target date.
Ensure your dataset is formatted as an Excel Table (press Ctrl+T) so you can use structured references like [@Risk] and [@StartDate], which makes formula management and readability much easier.
Use XLOOKUP and Date Math in an Excel Table
Create a separate lookup table to map risk levels to weeks, then use XLOOKUP to fetch the weeks and a simple addition formula to calculate the exact follow-up date.
Using XLOOKUP combined with a dedicated mapping table is the most scalable way to handle multiple risk levels. It allows you to update the number of weeks for a risk level in one place without editing the formulas.
Set up a small table with two columns (e.g., 'Risk' and 'Weeks') mapping each risk level (like High, Medium, Low) to a specific number of weeks. Name this table 'RiskTable'.
In your main table's Weeks column (e.g., Column J), enter the formula =XLOOKUP([@Risk], RiskTable[Risk], RiskTable[Weeks]). This fetches the corresponding weeks based on the current row's risk value.
In your Follow-up Date column (e.g., Column K), enter the formula =[@StartDate] + 7 * [@Weeks]. This multiplies the weeks by 7 to convert them to days, then adds them to the start date.

Use Nested IF Functions
If you are using an older version of Excel that does not support XLOOKUP or you prefer not to create a separate lookup table, use a nested IF formula.
Calculate Dates and Lookups Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced lookup functions like XLOOKUP and structured table references, allowing you to manage risk-based project dates effortlessly without compatibility issues.
- 1. Open Your Data File: Launch WPS Spreadsheet and open your existing project tracker or dataset.
- 2. Format as Table: Highlight your data and press Ctrl+L or Ctrl+T to format it as a table, enabling structured references.
- 3. Apply XLOOKUP: Use the XLOOKUP function to map your risk levels to the required number of weeks perfectly.
- 4. Calculate Deadlines: Multiply the weeks by 7 and add them to your start date cell to instantly generate the follow-up dates.

Frequently Asked Questions
Why am I getting a #NAME? error when using XLOOKUP?
The #NAME? error usually occurs if you are using an older version of Excel (like Excel 2016 or 2019) that does not support the newer XLOOKUP function. In this case, use VLOOKUP or nested IF functions instead, or switch to a modern alternative like WPS Spreadsheet.
How do I add months instead of weeks to a start date?
To add full months to a date rather than weeks, use the EDATE function. For example, =EDATE([@StartDate], [@Months]) will accurately add the specified number of months to your start date, accounting for varying month lengths.
What does [@Risk] mean in my Excel formula?
The [@Risk] syntax is a structured reference used in Excel Tables. It simply refers to the data in the 'Risk' column of the current row you are on. It makes formulas much easier to read and allows them to automatically expand when new data is added.




