ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   day of the week dates (https://www.excelbanter.com/excel-worksheet-functions/85113-day-week-dates.html)

JK (New England Coffee)

day of the week dates
 
I've created a form in Excel.

This form has a date field that must be a Saturday date.
I want to validate the field and allow only dates that fall on a Saturday.

Does anyone have any idea how to do this?
Your help would be most appreciated.

Regards,
Jason
--
Jason Kaloyanides
Tech. Support Coord.
New England Coffee
Sales Department


Bob Phillips

day of the week dates
 
JK (New England Coffee) wrote:
I've created a form in Excel.

This form has a date field that must be a Saturday date.
I want to validate the field and allow only dates that fall on a Saturday.

Does anyone have any idea how to do this?
Your help would be most appreciated.

Regards,
Jason


Check that the weekday is 7

=IF(WEEKDAY(A1)=7,"OK","Not OK")

This of course assumes that the date is in a cell.

[email protected]

day of the week dates
 
Better yet, put that in the data validation box - set it to custom and
have the test

=weekday(a1)=7



All times are GMT +1. The time now is 11:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com