How to Create a Real-Time Week Counter from a Start Date in Excel
Question details
The user needs an Excel formula to automatically calculate the number of completed weeks since a specific start date, with the result updating dynamically every day.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking the duration of a contract, project, or event in completed weeks starting from a designated date.
- Observed behavior
- Requires a dynamic formula that counts full weeks passed and handles blank start date cells correctly without returning errors.
Ensure your start dates are formatted properly as Date values in Excel (not as Text) so that mathematical functions can calculate the time difference without errors.
Calculate Completed Weeks Using QUOTIENT and TODAY Functions
Combine the TODAY() function with QUOTIENT to divide the number of passed days by 7, returning the exact number of full weeks since the start date.
The TODAY() function retrieves the current system date, while the QUOTIENT function divides the difference between today and the start date by 7. QUOTIENT automatically drops any remainder, ensuring you only see fully completed weeks.
To prevent formula errors when your start date cell is empty, you can wrap the calculation in an IF function.
Click on the cell where you want the real-time week counter to display its result.
Assuming your start date is in cell D2, type the following formula: =IF(D2="","",QUOTIENT(TODAY()-D2,7)) and press Enter. This will leave the cell blank if no date is entered in D2.
If you prefer the counter to display a zero when the start date cell is unpopulated, use this variation instead: =IF(D2="",0,QUOTIENT(TODAY()-D2,7)).
Click the bottom-right corner of your formula cell and drag the fill handle down to apply the week counter to your entire list of start dates.

Track Project Timelines Easily in WPS Spreadsheet
WPS Spreadsheet fully supports Excel date formulas, including TODAY and QUOTIENT. You can seamlessly track completed project weeks and easily build automated schedules in a lightweight, user-friendly environment.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your project tracking spreadsheet.
- 2. Select the week counter cell: Click on the specific cell where you want the completed weeks to be calculated.
- 3. Input the calculation formula: Type =IF(D2="","",QUOTIENT(TODAY()-D2,7)) into the formula bar and press Enter.
- 4. Drag to fill: Use the fill handle in the bottom-right corner of the cell to drag the formula down across your entire dataset.

Frequently Asked Questions
Why does my week counter formula return a #VALUE! error?
A #VALUE! error usually occurs if the start date in cell D2 is formatted as text instead of a valid date. Select your start date cell, right-click, choose 'Format Cells', set it to 'Date', and re-enter the date.
How do I calculate the total number of days instead of weeks?
To calculate days instead of weeks, you can skip the QUOTIENT function and simply subtract the start date from today's date. Use the formula: =IF(D2="","",TODAY()-D2).
How can I show partial weeks with decimal points?
The QUOTIENT function only returns whole integers. To see partial weeks as decimals, use standard division instead. The formula would be: =IF(D2="","",(TODAY()-D2)/7). You can then adjust the decimal formatting in the Home tab.
Does the TODAY() function update continuously in real-time?
No, it does not update continuously second-by-second. The TODAY() function updates dynamically whenever you open the workbook, or whenever a change triggers the spreadsheet to recalculate.




