Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JK (New England Coffee)
 
Posts: n/a
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default 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.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
How do I combine a list of dates & a value into 1 week intervals Nathan Woodson Excel Discussion (Misc queries) 0 January 20th 06 01:39 AM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
start/end dates of a week given just the weeknum() value David Excel Discussion (Misc queries) 4 December 12th 05 03:29 PM


All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"