How to Calculate Days in Each Stage Using Excel Formulas
Question details
The user needs to calculate the exact number of days a person or project remains in specific stages using an Excel formula. The formula must stop counting when the next stage's date is entered, continue counting to the current date if the next stage hasn't started, and return a blank if the current stage has no start date.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking the duration of time spent in consecutive project or pipeline stages.
- Observed behavior
- Requires a dynamic formula to calculate days between stage dates, handle blank cells gracefully, and use the TODAY() function for ongoing stages.
Ensure your start and end date columns are formatted as 'Date' and your formula output column is formatted as 'General' or 'Number' so the result displays as an integer.
Use a Nested IF and TODAY Formula to Calculate Stage Duration
This method dynamically calculates the days in a stage, stops counting when the next stage begins, and leaves the cell blank if the stage hasn't started yet.
By combining the IF function with the TODAY function, you can create a dynamic tracker. The formula checks if a start date exists. If it does, it checks for an end date (or the start of the next stage). If the next stage hasn't started, it calculates the days from the start date to today.
Click the cell where you want to display the number of days for Stage 1 (for example, cell B2).
Type the formula =IF(A2<>"",IF(C2="",TODAY()-A2,C2-A2),""). In this formula, A2 represents the start date of Stage 1, and C2 represents the start date of Stage 2 (which serves as the end date for Stage 1).
Press Enter. If C2 is blank, the formula calculates the days from A2 to the current date. If A2 is empty, it returns a blank cell.
Click the bottom-right corner of the cell (fill handle) and drag it down to apply this formula to the rest of the rows in your dataset.

Calculate Stage Durations Easily with WPS Spreadsheet
WPS Office provides a highly compatible spreadsheet tool that seamlessly executes complex date formulas like nested IFs and TODAY functions. It's a robust, free alternative for tracking project timelines and staging durations.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your workbook containing the stage tracking dates.
- 2. Enter the tracking formula: Select the target cell and type =IF(A2<>"",IF(C2="",TODAY()-A2,C2-A2),"").
- 3. Format as a number: Right-click the cell, select 'Format Cells', and ensure the category is set to 'Number' to display the days correctly instead of a date format.
- 4. Apply to the entire column: Drag the fill handle downwards to calculate the stage duration for all rows automatically.

Frequently Asked Questions
Why does my formula return a date instead of a number?
Spreadsheets often automatically format the result cell as a Date if the formula involves date references. To fix this, right-click the cell, choose 'Format Cells', and change the number format to 'Number' or 'General'.
How can I count only working days instead of total calendar days?
To calculate only business days, you can replace the standard subtraction (e.g., TODAY()-A2) with the NETWORKDAYS function. Your formula would look something like: =IF(A2<>"",IF(C2="",NETWORKDAYS(A2,TODAY()),NETWORKDAYS(A2,C2)),"").
Can I hide negative numbers if the start date is mistakenly set in the future?
Yes, you can use the MAX function to ensure the result is never less than zero. You would modify the calculation part to MAX(0, C2-A2) or MAX(0, TODAY()-A2).
What if the next stage date is on a different worksheet?
You can reference cells across different sheets by clicking on the target sheet while typing the formula. The reference will automatically include the sheet name, such as Sheet2!C2 instead of just C2.




