days and dates

M

msiz

hi
I am trying to make up a spreadsheet for a room booking system that states
both the day and date ie. Monday 1 January 2007. How do I add a formula that
will automatically change the day and date and omit weekends?
 
G

Gary''s Student

Let's say the entered date is in A1. In another cell enter:

=IF(OR(WEEKDAY(A1)=7,WEEKDAY(A1)=1),"",A1)

and format that cell as custom
dddd dd mmmm yyyy

So if the entered date is a weekend date the formula returns a blank.
 
Top