logo
search
Formula Errors

How to Calculate Days in Each Stage Using Excel Formulas

Anum MushtaqAnum Mushtaq Oct 14, 2026 869 views

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.

How to Calculate the Number of Days in Each Stage in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click the cell where you want to display the number of days for Stage 1 (for example, cell B2).

2
Enter the nested IF formula

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

3
Apply the formula

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.

4
Copy down the column

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.

Use a Nested IF and TODAY Formula to Calculate Stage Duration
Adjusting References for Subsequent Stages: When setting up the formula for Stage 2, adjust the cell references to match your new start column and the subsequent stage's start column (e.g., =IF(C2<>"",IF(E2="",TODAY()-C2,E2-C2),"")).
Efficient Formula Tracking with WPS Spreadsheet

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. 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open your workbook containing the stage tracking dates.
  2. 2. Enter the tracking formula: Select the target cell and type =IF(A2<>"",IF(C2="",TODAY()-A2,C2-A2),"").
  3. 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. 4. Apply to the entire column: Drag the fill handle downwards to calculate the stage duration for all rows automatically.
Fully compatible with Microsoft Excel formulas and date functions.Lightweight and fast, ideal for managing large datasets and complex trackers.Built-in data formatting tools for effortless date and number management.Free to use with a familiar, intuitive user interface.
microsoft office alternative - wps office

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.