How to Automatically Highlight the Current Week Number in Excel
Question details
The user needs to set up a worksheet so that the cell containing the current week number is automatically highlighted and updates dynamically as time passes.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Tracking weekly schedules, project timelines, or dashboards where the current week needs to stand out visually without manual updates.
- Observed behavior
- The goal is to have the current week number dynamically highlighted using a fill color based on the current date using formula-driven conditional formatting.
Ensure your worksheet has a row or column populated with week numbers, and confirm that your workbook's calculation mode is set to automatic so the formatting updates seamlessly.
Use Conditional Formatting with WEEKNUM and TODAY Functions
Create a formula-based conditional formatting rule that compares each cell's value to the current week determined by system time.
This method combines the WEEKNUM and TODAY functions to dynamically calculate the current week and compares it against your data range to apply a specific fill color.
Highlight all the cells containing your week numbers (for example, the cells in row 3).
Navigate to the Home tab on the Excel ribbon, click on 'Conditional Formatting', select 'New Rule', and then choose 'Use a formula to determine which cells to format'.
In the formula input box, type =WEEKNUM(TODAY())=A3. Make sure to replace 'A3' with the very first cell reference in your selected range.
Click the 'Format' button, switch to the 'Fill' tab, choose a highlight color like yellow, and click 'OK' twice to apply the rule.
Highlight Dynamic Dates Easily in WPS Spreadsheet
WPS Spreadsheet fully supports advanced conditional formatting formulas, including TODAY and WEEKNUM, making it perfectly compatible with Microsoft Excel workflows while offering a lightweight, user-friendly experience.
- 1. Select Your Cells: Open your worksheet in WPS Spreadsheet and highlight the range containing your week numbers.
- 2. Access Conditional Formatting: Go to the Home tab, click on Conditional Formatting, and select 'New Rule' from the dropdown menu.
- 3. Apply the Formula: Choose 'Use a formula to format cells', enter =WEEKNUM(TODAY())=A3 (adjusting A3 to your first cell), pick a fill color, and click OK.

Frequently Asked Questions
Why isn't the conditional formatting updating when the week changes?
Your workbook calculation options might be set to 'Manual'. Go to the Formulas tab, click Calculation Options, and change it to 'Automatic'. You can also press F9 to force a manual recalculation.
How can I highlight an entire row based on the current week number?
Modify your conditional formatting formula to lock the column reference (for example, =WEEKNUM(TODAY())=$A3) and ensure you select the entire data range you want highlighted before applying the rule, instead of just the week number column.
Does the WEEKNUM function start the week on Sunday or Monday?
By default, the WEEKNUM function assumes the week starts on Sunday. If your work week starts on Monday, you should add the return_type argument to your formula, making it =WEEKNUM(TODAY(), 2).
Can I use this method to highlight the current month instead of the week?
Yes, you can dynamically highlight the current month by replacing the WEEKNUM function with the MONTH function in your conditional formatting formula, such as =MONTH(TODAY())=A3.




