How to Automatically Display Today's Hours in Excel
Question details
The user needs a single cell in an Excel worksheet to automatically display the operating hours for the current day based on a weekly schedule list.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Managing a weekly schedule (e.g., library or business hours) and needing to dynamically show today's hours without manual daily updates.
- Observed behavior
- The user wants the designated cell to automatically update and display the correct daily hours whenever the current date changes.
Ensure you have a reference table set up in your worksheet containing the days of the week in one column and their corresponding operating hours in the adjacent column.
Use VLOOKUP and TODAY Functions
The most efficient way to dynamically pull today's hours from a reference list using built-in Excel formulas.
This method combines the TODAY function to get the current date, the TEXT function to convert it into a weekday name, and VLOOKUP to find the matching hours in your schedule list.
On a worksheet named 'List', enter the days of the week (Monday through Sunday) in cells A1 to A7, and their corresponding hours in cells B1 to B7.
Click on the cell in your main worksheet where you want today's operating hours to be displayed.
Type the formula =VLOOKUP(TEXT(TODAY(),"dddd"),List!A1:B7,2,FALSE) into the formula bar and press Enter.
The cell will now display the hours for the current day. This value will automatically update at midnight based on your computer's system clock.

Use a VBA Macro to Retrieve Today's Hours
Create a custom macro to look up today's weekday and write the corresponding hours to a specific cell, useful for automated reporting workflows.
Automate Your Schedules with WPS Spreadsheet
WPS Spreadsheet fully supports advanced formulas like VLOOKUP, TODAY, and TEXT, allowing you to easily automate your daily schedules. It provides a lightweight, highly compatible environment for all your data management tasks.
- 1. Set up your schedule list: Open WPS Spreadsheet and create a reference table with weekdays in column A and hours in column B.
- 2. Select your display cell: Click on the cell where you want today's hours to appear.
- 3. Apply the lookup formula: Type =VLOOKUP(TEXT(TODAY(),"dddd"),A1:B7,2,FALSE) and press Enter.
- 4. Enjoy automatic updates: The cell will instantly display the correct hours and automatically refresh every day without manual input.

Frequently Asked Questions
Why is my VLOOKUP formula returning an #N/A error?
This usually happens if the weekday name generated by the TEXT function doesn't exactly match the spelling in your reference list. Ensure there are no trailing spaces or typos in your list's weekday names.
Can I use XLOOKUP instead of VLOOKUP for this?
Yes. If you are using a newer version of Excel or WPS Spreadsheet, you can use =XLOOKUP(TEXT(TODAY(),"dddd"),List!A1:A7,List!B1:B7) to achieve the exact same result without needing to specify a column index number.
When exactly does the TODAY() function update?
The TODAY() function automatically updates to the current date based on your computer's system clock whenever the workbook is opened, or whenever the worksheet recalculates (like when you edit a cell).
Can I display the current date alongside the operating hours?
Yes, you can use the '&' operator to combine text strings. For example: =TEXT(TODAY(),"mm/dd/yyyy") & " Hours: " & VLOOKUP(TEXT(TODAY(),"dddd"),List!A1:B7,2,FALSE).




