{"id":3681,"date":"2021-10-19T20:48:46","date_gmt":"2021-10-20T03:48:46","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=3681"},"modified":"2021-10-19T20:48:47","modified_gmt":"2021-10-20T03:48:47","slug":"add-or-subtract-time-in-excel","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=3681","title":{"rendered":"Add or Subtract Time in Excel"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"page-header\">Add or subtract time<\/h1>\n\n\n\n<p>Let&#8217;s say that you need&nbsp;to add two different time values together to get a total. Or, you need to subtract a one-time value from another to get the total time spent working on a project.<\/p>\n\n\n\n<p>As you&#8217;ll see in the sections below, Excel makes it easy to add or subtract time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add time<\/h3>\n\n\n\n<p>Suppose that you want to know how many hours and minutes it will take to complete two tasks. You estimate that the first task will take 6 hours and 45 minutes and the second task will take 9 hours and 30 minutes.<\/p>\n\n\n\n<p>Here is one way to set this up in the a worksheet.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Enter&nbsp;<strong>6:45 in cell B2<\/strong>, and enter 9<strong>:30 in cell B3<\/strong>.<\/li><li>In cell B4, enter&nbsp;<strong>=B2+B3<\/strong>&nbsp;and then press Enter.<img decoding=\"async\" src=\"https:\/\/support.content.office.net\/en-us\/media\/2f0a0aea-ec1f-4ad0-8362-9db4410a0ac7.jpg\" alt=\"Time for two tasks added up\">The result is 16:15\u201416&nbsp;hours and 15 minutes\u2014for the completion the two tasks.<strong>Tip:&nbsp;<\/strong>You can also add up times by using the&nbsp;<strong>AutoSum<\/strong>&nbsp;function to sum numbers. Select cell B4, and then on the&nbsp;<strong>Home<\/strong>&nbsp;tab, choose&nbsp;<strong>AutoSum<\/strong>. The formula will look like this:&nbsp;<strong>=SUM(B2:B3).<\/strong>&nbsp;Press Enter to get the same result, 16 hours and 15 minutes.<\/li><\/ol>\n\n\n\n<p>Well, that was easy enough, but there\u2019s an extra step if your hours add up to more than 24. You need to apply a special format to the formula result.<\/p>\n\n\n\n<p><strong>To add up more than 24 hours:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>In cell B2 type&nbsp;<strong>12:45<\/strong>, and in cell B3 type&nbsp;<strong>15:30<\/strong>.<\/li><li>Type&nbsp;<strong>=B2+B3<\/strong>&nbsp;in cell B4, and then press Enter.<img decoding=\"async\" src=\"https:\/\/support.content.office.net\/en-us\/media\/0b6d48e6-83f6-4016-9e42-2d6a16df25df.jpg\" alt=\"Time added up that's over 24 hours total an unexepcted result of 4:15\">The result is 4:15, which is not what you might expect. This is because the time for Task 2 is in 24-hour time. 15:30 is the same as 3:30.<\/li><li>To display the time as more than 24 hours, select cell B4.<\/li><li>On the&nbsp;<strong>Home<\/strong>&nbsp;tab, in the&nbsp;<strong>Cells<\/strong>&nbsp;group, choose&nbsp;<strong>Format<\/strong>, and then choose&nbsp;<strong>Format Cells<\/strong>.<img decoding=\"async\" src=\"https:\/\/support.content.office.net\/en-us\/media\/1caa34c0-dedd-4586-b85f-fdbc1c3c0e89.jpg\" alt=\"On the Home tab, Format button, and the Format cells button on the menu\"><\/li><li>In the&nbsp;<strong>Format Cells<\/strong>&nbsp;box, choose&nbsp;<strong>Custom<\/strong>&nbsp;in the&nbsp;<strong>Category<\/strong>&nbsp;list.<\/li><li>In the&nbsp;<strong>Type<\/strong>&nbsp;box, at the top of the list of formats, type&nbsp;<strong>[h]:mm;@&nbsp;<\/strong>and then choose&nbsp;<strong>OK<\/strong>.<br><br>Take note of&nbsp;the colon after&nbsp;<strong>[h]<\/strong>&nbsp;and a semicolon after&nbsp;<strong>mm<\/strong>.<\/li><\/ol>\n\n\n\n<p>The result is 28 hours and 15 minutes. The format will be in the&nbsp;<strong>Type<\/strong>&nbsp;list the next time you need it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Subtract time<\/h3>\n\n\n\n<p>Here&#8217;s another example: Let&#8217;s say that you and your friends know both your start and end times at a volunteer project, and want to know how much time you spent in total.<\/p>\n\n\n\n<p>Follow these steps to get the elapsed time\u2014which is the difference between two times.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>In cell B2, enter the start time and include \u201c<strong>a<\/strong>\u201d for AM or \u201c<strong>p<\/strong>\u201d for PM. Then press Enter.<\/li><li>In cell C2, enter the end time, including \u201c<strong>a<\/strong>\u201d or \u201c<strong>p<\/strong>\u201d as appropriate, and then press Enter.<\/li><li>Type the other start and end times for your friends, Joy and Leslie.<\/li><li>In cell D2, subtract the end time from the start time by entering the formula&nbsp;<strong>=C2-B2<\/strong>, and then press Enter.<img decoding=\"async\" src=\"https:\/\/support.content.office.net\/en-us\/media\/13164e76-995f-4ffe-9eb1-27172cbaf34b.jpg\" alt=\"One time subtracted from another to get elapsed time\"><\/li><li>In the&nbsp;<strong>Format Cells<\/strong>&nbsp;box, click&nbsp;<strong>Custom<\/strong>&nbsp;in the&nbsp;<strong>Category<\/strong>&nbsp;list.<\/li><li>In the&nbsp;<strong>Type<\/strong>&nbsp;list, click&nbsp;<strong>h:mm<\/strong>&nbsp;(for hours and minutes), and then click&nbsp;<strong>OK<\/strong>.Now we see that Richard worked 3 hours and 45 minutes.<img decoding=\"async\" src=\"https:\/\/support.content.office.net\/en-us\/media\/f187c304-30a4-4564-8a70-ab0da9a3ba4d.jpg\" alt=\"Elpased times listed in column D\"><\/li><li>To get the results for Joy and Leslie, copy the formula by selecting cell D2 and dragging to cell D4.The formatting in cell D2 is copied along with the formula.<\/li><\/ol>\n\n\n\n<p><strong>To subtract time that\u2019s more than 24 hours:<\/strong><\/p>\n\n\n\n<p>It is necessary to create a formula to subtract the difference between two times that total more than 24 hours.<\/p>\n\n\n\n<p>Follow the steps below:<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Referring to the above example, select cell B1 and drag to cell B2 so that you can apply the format to both cells at the same time.<\/li><li>In the&nbsp;<strong>Format Cells<\/strong>&nbsp;box, click&nbsp;<strong>Custom<\/strong>&nbsp;in the&nbsp;<strong>Category<\/strong>&nbsp;list.<\/li><li>In the&nbsp;<strong>Type<\/strong>&nbsp;box, at the top of the list of formats, type&nbsp;<strong>m\/d\/yyyy h:mm AM\/PM<\/strong>.Notice the empty space at the end of&nbsp;<strong>yyyy<\/strong>&nbsp;and at the end of&nbsp;<strong>mm<\/strong>.The new format will be available when you need it in the&nbsp;<strong>Type<\/strong>&nbsp;list.<\/li><li>In cell B1, type the start date, including month\/day\/year and time using either \u201c<strong>a<\/strong>\u201d or \u201c<strong>p<\/strong>\u201d for AM and PM.<br><br><img decoding=\"async\" src=\"https:\/\/support.content.office.net\/en-us\/media\/f43162bb-504a-4130-85ab-42c193a57a7a.jpg\" alt=\"Elapsed time over 24 hours\"><\/li><li>In cell B2, do the same for the end date.<\/li><li>In cell B3, type the formula&nbsp;<strong>=(B2-B1)*24<\/strong>.<\/li><\/ol>\n\n\n\n<p>The result is 31.5 hours.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add or subtract time Let&#8217;s say that you need&nbsp;to add two different time values together to get a total. Or, you need to subtract a one-time value from another to get the total time spent working on a project. As you&#8217;ll see in the sections below, Excel makes it easy to add or subtract time. <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=3681\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,18],"tags":[913,912],"class_list":["post-3681","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-microsoft-office","tag-add-or-subtract-time","tag-add-or-subtract-time-in-excel"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3681"}],"version-history":[{"count":2,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3681\/revisions"}],"predecessor-version":[{"id":3683,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/3681\/revisions\/3683"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}