Function Problems

How to Calculate the Number of Days a Ticket Has Been Open in Excel

Khadija KhanKhadija Khan Nov 10, 2026 869 views

Question details

Calculate the duration a ticket has been active using a known start date and dynamic end dates that may be blank.

How to Calculate the Number of Days a Ticket Has Been Open in Excel
Product
Excel
Device & OS
not provided
Scenario
Tracking ticket or project durations where the end date is initially unknown but will be populated upon completion.
Observed behavior
Requires a formula that dynamically calculates days open based on the current date for active tickets, and locks the duration once a closing date is entered.
Before you start

Ensure your start dates and end dates are formatted as valid 'Date' values in Excel so the subtraction formula calculates the days accurately.

Solution 1

Calculate Days Open for Active Tickets (Basic)

Use this simple formula if you only need to calculate the days elapsed from a start date to the current date.

If you do not need to account for closing dates or empty rows, you can perform a simple subtraction using the TODAY() function.

1
Select the target cell

Click on the cell where you want the number of days to appear (e.g., C2).

2
Enter the TODAY formula

Assuming your start date is in cell A2, type the formula =TODAY()-A2 and press Enter.

3
Format the result

If the result displays as a date, go to the Home tab and change the Number Format from 'Date' to 'General' or 'Number'.

Efficient Spreadsheet Management

Easily Manage Tracking Sheets with WPS Spreadsheet

WPS Office fully supports all standard date and logical functions, including TODAY, IF, and IFS, making it perfectly suited for tracking ticket durations, project timelines, and daily workflows.

  1. 1. Open your tracker: Launch WPS Spreadsheet and open your ticket or project tracking document.
  2. 2. Apply the formula: Select the duration cell and type your IF/TODAY formula to dynamically calculate the days.
  3. 3. Format and drag: Format the cell as a number and drag the fill handle to seamlessly apply the logic across all your active and closed tickets.
Seamlessly compatible with Microsoft Excel formats (.xlsx, .xls)Full support for advanced date and logical functions (TODAY, IF, IFS)Lightweight and free alternative for everyday spreadsheet tasksFamiliar user interface with zero learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why does my formula result look like a weird date instead of a number?

When you subtract dates, the spreadsheet software sometimes automatically assumes the result should also be a date format. To fix this, select the cells with your formula, navigate to the Home tab, and change the Number Format dropdown from 'Date' to 'General' or 'Number'.

Can I exclude weekends from the days open calculation?

Yes. Instead of simple subtraction, use the NETWORKDAYS function to count only business days. For example, use =NETWORKDAYS(A2, IF(B2<>"", B2, TODAY())) to exclude Saturdays and Sundays from the duration.

What happens if the start date is in the future?

If a start date is logged in the future and there is no end date, the formula will return a negative number. You can prevent this by wrapping your calculation in a MAX function, such as =MAX(0, IF(B2<>"",B2,TODAY())-A2), which ensures the result never falls below zero.