Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

#### Post your problem and you’ll get Expert help in seconds.

Your message must be at least 40 characters
Our professional Expert are available now. Your privacy is guaranteed.

# Excel Data Validation Using the WEEKDAY Function

Figure 1. Excel Data Validation Using the WEEKDAY Function.

We can utilize a custom data validation formula derived from the Excel WEEKDAY function, if we want to permit a user to enter only dates that occur during the week (Monday – Friday).

## Formula Syntax

`=WEEKDAY(A1,2)<6`

This formula will return any Saturday and Sunday (weekend) entries as FALSE.

## How to use the Data Validation with the WEEKDAY Function in Excel

The WEEKDAY function in our custom validation formula gets a number value, (1-7), which corresponds to a week starting Monday (1) and finishing Sunday (7).

The return type argument for WEEKDAY is given as 2 to obtain a number for a Monday-based week.

The result of the WEEKDAY operation is matched against the number value 6 and if the date turns out to be a Saturday or Sunday, validation is FALSE.

We can achieve all this with 3 simple steps;

1. Properly arrange the data available for validation within columns of our Excel sheet.

Be sure to provide empty cells for Excel to return the desired results.

Figure 2. Excel Data Validation Using the WEEKDAY Function.

Our purpose here is to ensure that only dates occurring between Monday and Friday (weekdays) are entered into cells of our worksheet example.

1. The custom validation formula for cell C2 above is;

`=WEEKDAY(B2,2)<6`

Figure 3. Excel Data Validation Using the WEEKDAY Function.

Excel returned the result as TRUE since the date in cell B2 falls on a weekday.

1. Copy and paste the modified version of the custom validation formula in the other cells in the RESULTS column to get the other results.

Figure 4. Excel Data Validation Using the WEEKDAY Function.

Whenever a user adds or changes a cell value, data validation rules are triggered.

Figure 5. Final Result.

## Instant Connection to an Expert through our Excelchat Service:

Our live Excelchat Service is here for you. We have Excel Experts available 24/7 to answer any Excel questions you may have. Guaranteed connection within 30 seconds and a customized solution for you within 20 minutes.

### Did this post not answer your question? Get a solution from connecting with the expert.

Related blogs
Solution examples
Use the Vlookup Function to complete the "employee" column of table 2. Use "job Id" from table 2 as your lookup_value(s) and table 1 as your reference.
Solved by C. H. in 16 mins
If a cell in another sheet is populated I need a vlookup done. If the cell is not populated I need the cell to return blank.
Solved by T. D. in 60 mins
I am trying to make a chart that turns a week range red if nothing is entered in the range. If something is entered then I would like it to turn green. Please Help
Solved by E. U. in 43 mins
I need a check box to show/hide an answer of an if function
Solved by Z. U. in 23 mins
I need a formula to compare the data in two columns and then export the mismatched data in the 3rd column
Solved by S. Q. in 20 mins