Calculation Issues

Calculate Complete Weeks Until an Event Date in Excel

Bushra ParveenBushra Parveen Nov 12, 2026 869 views

Question details

Calculate the number of complete weeks from today until a future event date, or display matched event week values in a timeline.

Calculate Complete Weeks Until an Event Date in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the result cell

Click the cell where you want the weeks remaining to appear, such as C4.

2
Enter the weeks remaining formula

Enter =IF(B4="","",INT((B4-TODAY())/7)), replacing B4 with the cell that contains the event date.

3
Confirm and fill the formula

Press Enter. Drag the fill handle down if each row has an event date in the same column.

Calculate complete weeks remaining from an event date
How complete weeks are counted: For an event 13 days away, the formula returns 1 because only one complete seven-day week remains. Past event dates return negative values.
Calculate Event Weeks in WPS Spreadsheets

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. 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. 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. 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. 4. Fill the formula into the required cells: Use the fill handle to copy the formula down event rows or across timeline columns.
Calculate complete weeks remaining with TODAY and INT formulas.Use INDEX and MATCH to return matched event dates across a timeline.Open and edit Microsoft Excel .xlsx and .xls workbooks with formula compatibility.Use a familiar spreadsheet interface for quick migration from Excel.
microsoft office alternative - wps office

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.