#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 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?

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
Calculate Number of Months Weeks and Days Between Two Dates [email protected] Excel Worksheet Functions 4 September 22nd 06 01:47 AM
adding only working days to dates bazooka Excel Discussion (Misc queries) 2 May 4th 06 06:15 PM
challenging formula(for me), counting days between dates for multipleyears TG Excel Worksheet Functions 5 April 19th 06 05:31 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
Brainteaser about Days Between Dates Johnny Excel Discussion (Misc queries) 5 April 4th 05 05:09 AM


All times are GMT +1. The time now is 11:55 PM.

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

About Us

"It's about Microsoft Excel"