Help Identifying Weekends and holidays

craig80

Board Regular
Joined
May 18, 2010
Messages
51
Hello All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I am trying to get a True/False returned in a formula when I reference a date.<o:p></o:p>
<o:p></o:p>
For example, when a date is on a predefined list/range (and/or) a Saturday or a Sunday. I would like the status to be true<o:p></o:p>
<o:p></o:p>
<o:p>Any help would be greatly appreciated.</o:p>
<o:p></o:p>
Thanks

Craig<o:p> </o:p>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try

=OR(WEEKDAY(A1)=7,WEEKDAY(A1)=1,ISNUMBER(MATCH(A1,D1:D10,0)))

where D1:D10 holds the holidays.
 
Upvote 0
Thats great, works a treat.

I have changed the workday to show workday(A1,2) so as to show keep them the same as the others.

But this is great, thank you vrey much.

Craig
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top