View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
grobertson grobertson is offline
external usenet poster
 
Posts: 6
Default Invalid date if weekend or bank holiday

I still can't get this to work.

I just want it to not validate if a date that I enter is a wekend or bank
holiday

"bj" wrote:

try networkday()
you may have to install the analysis toolpack
=networkday(date in question,date in question, hol list)=0 will give a true
when a holoday or weekend date is selected.

"grobertson" wrote:

Hi,
I have a spreadsheet where cell C6 requires the user to enter a date, I
currently have a custom validation in the cell of the following:-

=WEEKDAY(C6,2)<=5

This displays an error message if a non-working day (i.e. a Saturday or
Sunday) is entered in the cell. Is there anyway I could get this to work if
the user also enters a bank holiday date.

Regards, Glenn