ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   days and dates (https://www.excelbanter.com/excel-discussion-misc-queries/115616-days-dates.html)

msiz

days and dates
 
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?

Gary''s Student

days and dates
 
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.
--
Gary's Student


"msiz" wrote:

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?



All times are GMT +1. The time now is 04:30 PM.

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