{"id":14926,"date":"2016-03-20T19:07:03","date_gmt":"2016-03-20T19:07:03","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=14926"},"modified":"2016-03-20T19:07:03","modified_gmt":"2016-03-20T19:07:03","slug":"spreadsheets-converting-date-to-serial-number-in-excel-using-datevalue","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/spreadsheets-converting-date-to-serial-number-in-excel-using-datevalue\/","title":{"rendered":"Spreadsheets:  converting date to serial number in Excel using DATEVALUE"},"content":{"rendered":"<h1>The tutor continues about Excel&#8217;s handling of dates.<\/h1>\n<p>I mentioned in my <a href=\"?p=14862\">March 16 post<\/a> that Excel can convert a date into a serial number for convenient calculation of duration between dates.  The serial number is the number of days from the turn of 1900 (possibly, on Mac, from the turn of 1904) up to, and including, the date of interest.<\/p>\n<p>Excel&#8217;s built-in function for converting the date to a serial number is DATEVALUE, found by clicking the <strong>Formulas<\/strong> tab, then <strong>Date &#038; Time<\/strong>.  The user can also just type <span style=\"font-family:monospace\">=datevalue()<\/span> in the formula box.<\/p>\n<p>The human form of date, such as &#8220;March 20, 2106&#8221; or &#8220;Mar-20-2016&#8221; or &#8220;20\/03\/2016&#8221;, is called a string.  DATEVALUE converts a date from a string to a serial number.  <em>Caution:  DATEVALUE only accepts certain forms of date string<\/em>.  Here are two forms that <em>do<\/em> work:<\/p>\n<p><span style=\"font-family:monospace\">=datevalue(&#8220;20\/03\/2016&#8221;)<\/span> should return 42449<\/p>\n<p><span style=\"font-family:monospace\">=datevalue(&#8220;20-Mar-2016&#8221;)<\/span> should return 42449<\/p>\n<p>To use one of the formulas as above, it needs to be typed exactly that way:  the quotes are needed.<\/p>\n<p>I&#8217;ll be talking more about spreadsheets in future posts:)<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor continues about Excel&#8217;s handling of dates. I mentioned in my March 16 post that Excel can convert a date into a serial number for convenient calculation of duration between dates. The serial number is the number of days &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/spreadsheets-converting-date-to-serial-number-in-excel-using-datevalue\/\"> <span class=\"screen-reader-text\">Spreadsheets:  converting date to serial number in Excel using DATEVALUE<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1065],"tags":[1515,1514,1513],"class_list":["post-14926","post","type-post","status-publish","format-standard","hentry","category-spreadsheets","tag-converting-date-string-to-serial-number","tag-excel-converting-date-to-serial-number","tag-excel-datevalue"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=14926"}],"version-history":[{"count":20,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14926\/revisions"}],"predecessor-version":[{"id":14946,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14926\/revisions\/14946"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=14926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=14926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=14926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}