WEEKDAY Function
Master the WEEKDAY function to return the day of week as a number. Learn syntax, examples, and error solutions for Excel and Google Sheets calculations.




=WEEKDAY(serial_number, [return_type])
Practical Examples
Basic Weekday Identification
Find what day of the week September 25, 2025 falls on
Weekend Detection Formula
Check if a date falls on a weekend and display 'Weekend' or 'Weekday'
Calculate Next Monday
Find the date of the next Monday from any given date
Business Days Calculation
Count only weekdays between two dates using WEEKDAY
Day Name from Date
Convert WEEKDAY number to actual day name
Shift Schedule Assignment
Assign employees to shifts based on the day of the week
Common Errors and Solutions
WEEKDAY returns #VALUE! error
The date parameter contains text that cannot be interpreted as a valid date
1. Verify the date format is recognizable (MM/DD/YYYY or DD/MM/YYYY depending on regional settings) 2. Check for extra spaces or hidden characters 3. Use DATE function to create valid dates: =WEEKDAY(DATE(2025,9,25)) 4. Ensure cells are formatted as dates, not text
WEEKDAY returns #NUM! error
The return_type parameter is not a valid option (must be 1-3 or 11-17)
1. Check that return_type is within valid range 2. Remove or correct the second parameter 3. Use default by omitting the parameter
WEEKDAY returns unexpected number for known day
Using wrong return_type parameter for your expected numbering system
1. Verify which return_type you're using 2. Check if you need Sunday-start (1) or Monday-start (2) 3. Adjust formula to match your requirements 4. Consider your regional date system expectations
Best Practices and Pro Tips
While WEEKDAY returns numbers, you can get day names directly using =TEXT(A2,"dddd") for full names or =TEXT(A2,"ddd") for abbreviations. This is often more user-friendly than numbers.
Apply conditional formatting rules based on WEEKDAY to automatically highlight weekends: =OR(WEEKDAY($A2)=1,WEEKDAY($A2)=7) creates weekend highlighting.
For large datasets, calculate WEEKDAY once in a helper column rather than repeatedly in complex formulas. This significantly improves spreadsheet performance.
Need Help with WEEKDAY Function?
Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.
Example Excel formula:
Related Formulas
The NOW function returns the current date and time, updating automatically when the spreadsheet recalculates. Perfect for timestamps and real-time tracking.

Master the TODAY function to insert dynamic current dates that update automatically. Learn practical examples and avoid common errors.
