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.

ExcelExcel
Google SheetsGoogle Sheets
date-time
intermediate
Syntax Preview
ExcelExcelGoogle SheetsGoogle Sheets
=WEEKDAY(serial_number, [return_type])
Quick Answer
Comprehensive Explanation
Syntax and Parameters

Practical Examples

Basic Weekday Identification

Find what day of the week September 25, 2025 falls on

Result: 5

Weekend Detection Formula

Check if a date falls on a weekend and display 'Weekend' or 'Weekday'

Result: Weekday

Calculate Next Monday

Find the date of the next Monday from any given date

Result: 9/29/2025

Business Days Calculation

Count only weekdays between two dates using WEEKDAY

Result: 22

Day Name from Date

Convert WEEKDAY number to actual day name

Result: Thursday

Shift Schedule Assignment

Assign employees to shifts based on the day of the week

Result: Team B

Common Errors and Solutions

#VALUE!

WEEKDAY returns #VALUE! error

Cause:

The date parameter contains text that cannot be interpreted as a valid date

Solution:

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

#NUM!

WEEKDAY returns #NUM! error

Cause:

The return_type parameter is not a valid option (must be 1-3 or 11-17)

Solution:

1. Check that return_type is within valid range 2. Remove or correct the second parameter 3. Use default by omitting the parameter

Wrong Day Returned

WEEKDAY returns unexpected number for known day

Cause:

Using wrong return_type parameter for your expected numbering system

Solution:

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.

Advanced Techniques
WEEKDAY vs Alternative Functions

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

NOW Function

The NOW function returns the current date and time, updating automatically when the spreadsheet recalculates. Perfect for timestamps and real-time tracking.

beginner
date-time
ExcelExcel
Validated
TODAY Function

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

beginner
date-time
ExcelExcel
Validated