{"id":124,"date":"2011-08-01T11:29:16","date_gmt":"2011-08-01T11:29:16","guid":{"rendered":"http:\/\/www.microsofttraining.net\/b\/exceltraining\/?p=124"},"modified":"2023-12-30T23:14:26","modified_gmt":"2023-12-30T23:14:26","slug":"excel-2010-courses-calculating-times","status":"publish","type":"post","link":"https:\/\/www.stl-training.co.uk\/b\/excel-2010-courses-calculating-times\/","title":{"rendered":"Excel 2010 Courses \u2013 Calculating Times"},"content":{"rendered":"<p>One of the most asked questions during our <strong>Excel 2010 Training Courses<\/strong> in <strong>London<\/strong> has to be the subject of calculating times.<\/p>\n<p>One important issue is how time values are typed in Excel. This should always be as<br \/>\n9:00 AM or 10:30 PM. There must be a colon separating the hours:minutes and if you are specifying AM or PM there MUST be a space between the minutes and the AM or PM.<\/p>\n<p>In the example below we wish to calculate elapsed time.<\/p>\n<p><a href=\"https:\/\/www.stl-training.co.uk\/b\/exceltraining\/files\/2011\/08\/Microsoft-Excel-Training_Screen.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-125\" src=\"https:\/\/www.stl-training.co.uk\/b\/exceltraining\/files\/2011\/08\/Microsoft-Excel-Training_Screen.jpg\" alt=\"\" width=\"470\" height=\"203\" \/><\/a><\/p>\n<p>The formula would be the later time minus the earlier time. E.g. 10:25 AM \u2013 9:00 AM<\/p>\n<p>The result will be formatted incorrectly. To format to show 1.25 you Select the Cell with the answer.\u00a0Right-Click, From the context menu select Format Cells<\/p>\n<p><a href=\"https:\/\/www.stl-training.co.uk\/b\/exceltraining\/files\/2011\/08\/Microsoft-Excel-Training_Format-Cells.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-126\" src=\"https:\/\/www.stl-training.co.uk\/b\/exceltraining\/files\/2011\/08\/Microsoft-Excel-Training_Format-Cells-300x268.jpg\" alt=\"\" width=\"300\" height=\"268\" \/><\/a><\/p>\n<p>Select <em>Custom<\/em> from the Category list, then choose the Type <strong>[h]:mm:ss<\/strong><\/p>\n<p><em>Note<\/em>: You MUST select the format with the square brackets around the h.<br \/>\nOptional, you can remove the :ss from the end, unless you need to see the Seconds.<\/p>\n<p>Click OK.\u00a0This will display the correct format.<\/p>\n<p>The other problem people on <strong>Excel Training Courses<\/strong> experience is when the time spans over midnight. This can give negative results.\u00a0The secret is a function called MOD.<\/p>\n<p>The last example from the above screen shot shows 10 PM from the previous evening and an end time the following day of 6 AM.\u00a0The calculation would still be the later date\/time minus the earlier one e.g. 6 AM \u2013 10 PM<\/p>\n<p>However, include this within the MOD function as below:<\/p>\n<p><a href=\"https:\/\/www.stl-training.co.uk\/b\/exceltraining\/files\/2011\/08\/Microsoft-Excel-Training_MOD_Function_Excel.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-128\" src=\"https:\/\/www.stl-training.co.uk\/b\/exceltraining\/files\/2011\/08\/Microsoft-Excel-Training_MOD_Function_Excel.jpg\" alt=\"Microsoft Training Excel 2010 - MOD Function\" width=\"756\" height=\"319\" \/><\/a><\/p>\n<p>Type: =MOD(Latest time \u2013 Earlier time, 1 )<\/p>\n<p>This will give the correct Hours\/Minutes elapsed between the times.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most asked questions during our Excel 2010 Training Courses in London has to be the subject of calculating times. One important issue is how time values are typed in Excel. This should always be as 9:00 AM or 10:30 PM. There must be a colon separating the hours:minutes and if you are [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[174,339,340,368,539],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-excel-training","tag-excel-2010-courses","tag-london-excel-training","tag-london-training","tag-microsoft-training","tag-training"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/comments?post=124"}],"version-history":[{"count":1,"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":6800,"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/posts\/124\/revisions\/6800"}],"wp:attachment":[{"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stl-training.co.uk\/b\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}