{"id":1007,"date":"2019-05-02T13:42:40","date_gmt":"2019-05-02T10:42:40","guid":{"rendered":"https:\/\/www.test4u.eu\/excelpedia\/?p=1007"},"modified":"2019-05-02T13:42:43","modified_gmt":"2019-05-02T10:42:43","slug":"the-weekday-function","status":"publish","type":"post","link":"https:\/\/www.test4u.eu\/excelpedia\/the-weekday-function\/","title":{"rendered":"The WEEKDAY Function"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It returns the day of the week corresponding to a date. The day is given as an integer, ranging from 1 to 7.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The syntax of the function is the following: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-large is-layout-flow wp-block-quote-is-layout-flow\"><p> <strong>WEEKDAY<\/strong><em>(<strong>serial_number, [return_type]<\/strong><\/em>) <\/p><cite><strong>serial_number<\/strong>: It represents the date for which we want to return the day of the week. <br><strong>[return_type]<\/strong>: Optional. Default is 1. It is a number that defines the type of the return value.<\/cite><\/blockquote>\n\n\n\n<table class=\"wp-block-table is-style-stripes\"><tbody><tr><td><strong>return_type<\/strong><\/td><td><strong>Definition<\/strong><\/td><\/tr><tr><td>1<\/td><td>Returns (1=Sunday to 7=Saturday)<\/td><\/tr><tr><td>2<\/td><td>Returns (1=Monday to 7=Sunday)<\/td><\/tr><tr><td>3<\/td><td>Returns (0=Monday to 6=Sunday)<\/td><\/tr><tr><td>11<\/td><td>Returns (1=Monday to 7=Sunday)<\/td><\/tr><tr><td>12<\/td><td>Returns (1=Tuesday to 7=Monday)<\/td><\/tr><tr><td>13<\/td><td>Returns (1=Wednesday to 7=Tuesday)<\/td><\/tr><tr><td>14<\/td><td>Returns (1=Thursday to 7=Wednesday)<\/td><\/tr><tr><td>15<\/td><td>Returns (1=Friday to 7=Thursday)<\/td><\/tr><tr><td>16<\/td><td>Returns (1=Saturday to 7=Friday)<\/td><\/tr><tr><td>17<\/td><td>Returns (1=Sunday to 7=Saturday)<\/td><\/tr><\/tbody><\/table>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Click on the button to practice using this function, with the help of our <strong>Online Assessment Tool<\/strong>:<\/p>\n\n\n<p class=\"button-practice-container\" ><a class=\"button button-primary button-practice\" style=\"height:auto\"  href=\"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/plugins\/unlimited-integration\/run.php?id=aG0zMzVlL1dneTlYKzQvSHNTLzk3R01pYzNiZDhURDY2Tld3Z083OVpYektMMDhiSGVaTlV3dUVTNmlyV3BZSQ==&b=ZEY0RTJ3a25aSUxoWXB3b0lHYzJoVDQwVDNhLzZOT2FTS0pZOUZnRmVoQk9UeFlSYUVrbDU5ZjdRVVRBRGptdlFqc0dqSGFkekp4dWN3MGVhbEpaZmdVcVY5TDFEYUVqaXBINDJxemdHa0U9\">Practice<\/a><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Here is an example of how to use the WEEKDAY function:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the proper formula in the cell I2 to display the number of the day of the week (Sunday=1,Monday=2,\u2026), which appears in the cell A2.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Use the WEEKDAY function to display the number of the day of the week (Excel 2016)\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/lATklwbpL9I?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It returns the day of the week corresponding to a date. The day is given as an integer, ranging from 1 to 7.<\/p>\n","protected":false},"author":2,"featured_media":1008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[133,145],"class_list":["post-1007","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-functions","tag-date-time","tag-weekday"],"_links":{"self":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/1007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/comments?post=1007"}],"version-history":[{"count":0,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/1007\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media\/1008"}],"wp:attachment":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media?parent=1007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/categories?post=1007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/tags?post=1007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}