Calculate Complete Weeks Until an Event Date in Excel
Question details
Calculate the number of complete weeks from today until a future event date, or display matched event week values in a timeline.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user needs a formula that updates automatically as the current date changes and can be filled across a worksheet timeline.
- Observed behavior
- The desired result is the number of whole weeks remaining until an event, with blank results when no event date or no matching timeline value is available.
Make sure event cells contain real Excel dates rather than text. Verify that the event date range and timeline lookup range use matching values before using the INDEX and MATCH formula.
Calculate complete weeks remaining from an event date
Use this formula when one cell contains the future event date and you need the number of full weeks remaining from today.
The formula subtracts today's date from the event date, divides the result by seven, and removes any partial week. It recalculates whenever the workbook recalculates.
Click the cell where you want the weeks remaining to appear, such as C4.
Enter =IF(B4="","",INT((B4-TODAY())/7)), replacing B4 with the cell that contains the event date.
Press Enter. Drag the fill handle down if each row has an event date in the same column.

Return timeline week values with INDEX and MATCH
Use this formula when event dates are stored across a header row and you need to look up the matching event in each timeline row.
Calculate Weeks Until an Event in WPS Spreadsheets
WPS Spreadsheets supports date calculations with TODAY, IF, INT, FLOOR, INDEX, and MATCH. Enter the same formulas to calculate complete weeks until an event or build a timeline that updates automatically.
- 1. Open the worksheet in WPS Spreadsheets: Open your .xlsx or .xls event tracker in WPS Office and select the worksheet containing the event dates.
- 2. Add the event date formula: Click a result cell and enter =IF(B4="","",INT((B4-TODAY())/7)), changing B4 to your event-date cell.
- 3. Create a timeline lookup when needed: For a timeline layout, enter =IFNA(FLOOR(INDEX($F$4:$V$4,MATCH(C$4,$F5:$V5,0))-TODAY(),7)/7,"") in the first result cell.
- 4. Fill the formula into the required cells: Use the fill handle to copy the formula down event rows or across timeline columns.

Frequently Asked Questions
What formula calculates whole weeks until an event date?
Use =IF(B4="","",INT((B4-TODAY())/7)). Replace B4 with the cell containing the event date. INT removes partial weeks from the result.
Why does the weeks-until-event formula return a negative number?
A negative result means the event date is before today. Check the date in the referenced cell, or wrap the calculation with MAX(0,...) if you want past events to display 0.
How can I leave the result blank when there is no event date?
Start the formula with IF(B4="","",...). This tests whether B4 is empty and returns a blank cell instead of calculating a value.
How do I calculate event weeks across a timeline in Excel?
Enter =IFNA(FLOOR(INDEX($F$4:$V$4,MATCH(C$4,$F5:$V5,0))-TODAY(),7)/7,"") in the first timeline result cell, then fill it across. Adjust the ranges to match your header dates and lookup row.
Does the formula update automatically every day?
Yes. Because it uses TODAY(), the result updates when Excel or WPS Spreadsheets recalculates the workbook.




