{"id":1657,"date":"2022-07-06T11:34:27","date_gmt":"2022-07-06T16:34:27","guid":{"rendered":"http:\/\/xlfxs.com\/?p=1657"},"modified":"2022-07-06T11:34:27","modified_gmt":"2022-07-06T16:34:27","slug":"schedule-column","status":"publish","type":"post","link":"https:\/\/xlfxs.com\/?p=1657","title":{"rendered":"Schedule column"},"content":{"rendered":"\n<p>Create list of dates excluding weekends and holidays.<br>Basically create list of workdays in a certain year, you may fill in to get more.<\/p>\n\n\n\n<p>List of holidays is defined in another column, formula already excludes Saturdays and Sundays.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>I needed this tool to generate txt file with these dates to feed into another app to be run on daily basis, only workdays, not weekends, and no holidays.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br>K2 = start date<br>H = list of dates to be excluded from list (like holiday dates)<br>K3 <code>=IF(COUNTIF(H:H,INT(K2+1))=0,IF(WEEKDAY(K2+1)=7,IF(COUNTIF(H:H,INT(K2+3))=0,K2+3,K2+4),K2+1),IF(WEEKDAY(K2+2)=7,K2+4,K2+2))<\/code><br>Formula works for up to 2 days holiday after or before a weekend.<br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-buttons aligncenter is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/1drv.ms\/x\/s!An4iomsT7EVO65JizY0RuXf921R5GQ?e=4DFbNz\" style=\"border-radius:5px\" target=\"_blank\" rel=\"noreferrer noopener\">Excel Online<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2022\/07\/Schedule.txt.xlsx\" style=\"border-radius:5px\">Download<\/a><\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xlfxs.com\/wp-content\/uploads\/2022\/07\/schedule.png\" alt=\"\" class=\"wp-image-1659\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Create list of dates excluding weekends and holidays.Basically create list of workdays in a certain year, you may fill in to get more. List of holidays is defined in another column, formula already excludes Saturdays and Sundays.<\/p>\n","protected":false},"author":1,"featured_media":1659,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,20,23,3,80,35,6,7,63],"tags":[118,147,182,207],"class_list":["post-1657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-basic-math","category-countif","category-date-and-time","category-formulas","category-if","category-logical","category-standard_functions","category-statistical","category-weekday","tag-countif","tag-if","tag-schedule","tag-weekday"],"_links":{"self":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1657"}],"version-history":[{"count":0,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/posts\/1657\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=\/wp\/v2\/media\/1659"}],"wp:attachment":[{"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlfxs.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}