#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JRD JRD is offline
external usenet poster
 
Posts: 60
Default Weekends

Is there a function that can work out from a date (in format dd/mm/yy)
whether the date falls on a weekend day i.e. a saturday or sunday?

Thanks

John
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Weekends

Hi,
Look into CPearson web it has everything related to dates

http://www.cpearson.com/excel/datetime.htm#AddingDates

if this helps please click yes, thanks

"JRD" wrote:

Is there a function that can work out from a date (in format dd/mm/yy)
whether the date falls on a weekend day i.e. a saturday or sunday?

Thanks

John

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Weekends

=TEXT(A1,"dddd")


"JRD" wrote:

Is there a function that can work out from a date (in format dd/mm/yy)
whether the date falls on a weekend day i.e. a saturday or sunday?

Thanks

John

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Weekends

Try the function which returns TRUE if the date in A1 is a weekend..

=MOD(A1,7)<2

If this post helps click Yes
---------------
Jacob Skaria


"Teethless mama" wrote:

=TEXT(A1,"dddd")


"JRD" wrote:

Is there a function that can work out from a date (in format dd/mm/yy)
whether the date falls on a weekend day i.e. a saturday or sunday?

Thanks

John

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Weekends

Hi,

This returns TRUE for a weekday or FALSE for a weekend

=IF(ISERROR(VLOOKUP(WEEKDAY(A2),{2;3;4;5;6},1,0)), FALSE,TRUE)

Mike

"JRD" wrote:

Is there a function that can work out from a date (in format dd/mm/yy)
whether the date falls on a weekend day i.e. a saturday or sunday?

Thanks

John



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Weekends

That's not true if you're using the 1904 base date.

=WEEKDAY(A1,2)5

Should work for either base date.

Jacob Skaria wrote:

Try the function which returns TRUE if the date in A1 is a weekend..

=MOD(A1,7)<2

If this post helps click Yes
---------------
Jacob Skaria

"Teethless mama" wrote:

=TEXT(A1,"dddd")


"JRD" wrote:

Is there a function that can work out from a date (in format dd/mm/yy)
whether the date falls on a weekend day i.e. a saturday or sunday?

Thanks

John


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Weekends

Hi,

This may not be enough for your needs but change the cell format to
ddd - mm/dd/yy

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"JRD" wrote:

Is there a function that can work out from a date (in format dd/mm/yy)
whether the date falls on a weekend day i.e. a saturday or sunday?

Thanks

John

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
calculations of weekends only tmj8901 Excel Worksheet Functions 2 May 29th 09 06:20 PM
add time with out weekends Aroldo Excel Discussion (Misc queries) 3 November 27th 07 08:03 PM
Identifying Weekends Jepane Excel Discussion (Misc queries) 1 June 14th 07 11:00 PM
Weekends Bob[_6_] Excel Worksheet Functions 9 June 8th 07 01:30 PM
WEEKENDS VS. WEEKDAYS TLAngelo Excel Discussion (Misc queries) 0 July 10th 06 06:49 PM


All times are GMT +1. The time now is 07:44 AM.

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"