ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Weekends (https://www.excelbanter.com/excel-worksheet-functions/235440-weekends.html)

JRD

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

Eduardo

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


Teethless mama

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


Jacob Skaria

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


Mike H

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


Dave Peterson

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

Shane Devenshire[_2_]

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



All times are GMT +1. The time now is 12:46 PM.

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