{"id":9996,"date":"2019-09-04T13:06:41","date_gmt":"2019-09-04T11:06:41","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=9996"},"modified":"2023-11-30T17:41:59","modified_gmt":"2023-11-30T16:41:59","slug":"hour-formula-in-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/hour-formula-in-excel\/","title":{"rendered":"HOUR Formula in Excel"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>Gets the hour from the time<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=HOUR(<span style=\"color: #0000ff;\">serial_number<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=HOUR(<span style=\"color: #0000ff;\">time wherein the hour will be extracted from<\/span>)<\/p>\n<hr \/>\n<p>I recall wherein I had a lot of times and I wanted to extract the hour of the times one-by-one&#8230; It was too much of a hassle! Thankfully there is Excel&#8217;s\u00a0<strong>HOUR Formula<\/strong> to do that for me!<\/p>\n<p>A couple of interesting things on the <strong>HOUR Formula<\/strong>:<\/p>\n<ul>\n<li>The hour it returns to you is similar to military time ranging from 0 &#8211; 23<\/li>\n<li>If it&#8217;s a date time, then the date gets ignored<\/li>\n<li>If the time is greater than 24 hours, then it simply converts it to days and hours, then returns the hour component only<\/li>\n<\/ul>\n<p>I explain how you can do this below:<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/ZSovReiebB4?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">HOUR-FORMULA.xlsx<\/span><\/a><\/p>\n<p class=\"line-two\">\n<\/div>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong><\/span> We need to <strong>enter the <i>HOUR\u00a0<\/i>function in a blank cell<\/strong>:<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\">=HOUR(<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"HOUR Formula in Excel\"  class=\"aligncenter size-full wp-image-10232\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-01.jpg\" alt=\"HOUR Formula in Excel\" width=\"453\" height=\"231\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-01.jpg 453w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-01-300x153.jpg 300w\" sizes=\"(max-width: 453px) 100vw, 453px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span>\u00a0The <b>HOUR\u00a0<\/b>arguments:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/hour-formula-in-excel\/#serial_number\" title=\"serial_number\">serial_number<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"serial_number\"><\/span><span style=\"color: #0000ff;\"><em><strong>serial_number<\/strong><\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is the time that you want to extract the hour from?<\/strong><\/p>\n<p><em>Select the cell containing the time:<\/em><\/p>\n<h2 style=\"text-align: center;\">=HOUR(<span style=\"color: #0000ff;\">C9)<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"HOUR Formula in Excel\"  class=\"aligncenter size-full wp-image-10233\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-02.jpg\" alt=\"HOUR Formula in Excel\" width=\"426\" height=\"231\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-02.jpg 426w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-02-300x163.jpg 300w\" sizes=\"(max-width: 426px) 100vw, 426px\" \/><\/p>\n<p>Apply the same formula to the rest of the cells by dragging the lower right corner downwards.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"HOUR Formula in Excel\"  class=\"aligncenter size-full wp-image-10234\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-03.jpg\" alt=\"HOUR Formula in Excel\" width=\"425\" height=\"232\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-03.jpg 425w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-03-300x164.jpg 300w\" sizes=\"(max-width: 425px) 100vw, 425px\" \/><\/p>\n<p>You now have your years extracted!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"HOUR Formula in Excel\"  class=\"aligncenter size-full wp-image-10235\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-04.jpg\" alt=\"HOUR Formula in Excel\" width=\"443\" height=\"256\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-04.jpg 443w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/HOUR-FORMULA-04-300x173.jpg 300w\" sizes=\"(max-width: 443px) 100vw, 443px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #0000ff;\"><strong>How to Use the HOUR Formula in Excel<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/ebooks.myexcelonline.com\/products\/101-most-popular-excel-formulas-e-book\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-10741\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book.png\" alt=\"\" width=\"1200\" height=\"628\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book.png 1200w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book-300x157.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book-1024x536.png 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book-768x402.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; What does it do? Gets the hour from the time Formula breakdown: =HOUR(serial_number) What it means: =HOUR(time wherein the hour will be extracted from) I recall wherein I had a lot of times and I wanted to extract the hour of the times one-by-one&#8230; It was too much of a hassle! Thankfully there is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17977,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[13,3,524],"tags":[68,142,525],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/9996"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=9996"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/9996\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17977"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=9996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=9996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=9996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}