{"id":5279,"date":"2019-05-24T14:19:55","date_gmt":"2019-05-24T19:19:55","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5279"},"modified":"2019-05-24T14:26:35","modified_gmt":"2019-05-24T19:26:35","slug":"did-you-know-conditional-formatting-can-highlight-data-based-on-date","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5279","title":{"rendered":"Did you know \u2026 Conditional Formatting can highlight data based on date?"},"content":{"rendered":"<p>As we are upgrading groups to Microsoft Teams, we need to be able to identify which activities need to be performed each week. While highlighting today\u2019s date is a start, it is better to identify which tasks need to be performed in the upcoming week so we can plan ahead.<\/p>\n<p>To accomplish this, I use a conditional formatting rule. It highlights all of the date values that fall between today and seven days in the future. How? In conditional formatting, you can use a formula to determine which cells to format. My selection rage is E2 through J20, so the conditional formatting formula is based off of the E2 cell.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"362\" class=\"wp-image-5280\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-36.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-36.png 772w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-36-300x141.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-36-768x360.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/p>\n<p>The formula AND\u2019s to IF functions. If the difference between the cell date and today is less than 8 (less than 8 days in the future) AND if the difference between the cell date and today is greater than or equal to zero (today or a future date), the rule evaluates to TRUE and the highlighting is applied.<\/p>\n<p>=AND(IF((E2 &#8211; TODAY()) &lt;8,1,0),IF((E2 &#8211; TODAY()) &gt;= 0,1,0))<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"448\" class=\"wp-image-5281\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-37.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-37.png 452w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-37-150x150.png 150w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-37-300x297.png 300w\" sizes=\"auto, (max-width: 452px) 100vw, 452px\" \/><\/p>\n<p>The result \u2013 every activity we need to plan for in the upcoming week is highlighted.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1441\" height=\"438\" class=\"wp-image-5282\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-38.png\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-38.png 1441w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-38-300x91.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-38-768x233.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/05\/word-image-38-1024x311.png 1024w\" sizes=\"auto, (max-width: 1441px) 100vw, 1441px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we are upgrading groups to Microsoft Teams, we need to be able to identify which activities need to be performed each week. While highlighting today\u2019s date is a start, it is better to identify which tasks need to be performed in the upcoming week so we can plan ahead. To accomplish this, I use &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[677],"tags":[675,709,691,729,731],"class_list":["post-5279","post","type-post","status-publish","format-standard","hentry","category-office-365","tag-did-you-know","tag-microsoft-excel","tag-microsoft-office","tag-microsoft-office-365","tag-ms-excel"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5279"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5279\/revisions"}],"predecessor-version":[{"id":5283,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5279\/revisions\/5283"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}