{"id":76,"date":"2024-05-01T08:28:38","date_gmt":"2024-05-01T08:28:38","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/chapter\/chapter-4-sum-and-average-functions\/"},"modified":"2024-09-18T00:52:11","modified_gmt":"2024-09-18T00:52:11","slug":"chapter-4-sum-and-average-functions","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/chapter\/chapter-4-sum-and-average-functions\/","title":{"raw":"Chapter 4: SUM and AVERAGE Functions","rendered":"Chapter 4: SUM and AVERAGE Functions"},"content":{"raw":"<div class=\"chapter-4:-sum-and-average-functions\">\r\n<div class=\"textbox textbox--learning-objectives\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\" style=\"text-align: justify\">Learning Objectives<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\" style=\"text-align: justify\">\r\n<ol>\r\n \t<li>Use the SUM function.<\/li>\r\n \t<li>Use the AVERAGE function.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<\/div>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Apart from using mathematical operators in your formulas, you can also use functions that can help to quickly create formulas. For example, the function that adds the values in cells or a range of cells is called the SUM function.<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">To illustrate, the following formula calculates the values in ten cells without using a function:<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">=A1+A2+A3+A4+A5+A6+A7+A8+A9+A10<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">This is not pretty, isn\u2019t it? This can be prone to mistakes such as missing a cell reference or typing the wrong cell reference. With the SUM function, your formula would be shortened to:<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">=SUM (A1:A10)<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">As usual, start with the equal sign (=) to create a formula and then followed by the SUM function. In brackets, type the first cell reference, A1, and the last cell reference, A10 with the colon symbol (:) in between the cell references. It tells Excel to include all cells between the two endpoint cell references, all cells from cell A1 until cell A10.<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Much simpler, right? The SUM function adds the values from a range of cells, from cell A1 to cell A10.<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">In this chapter, you will learn to use two popular functions in Excel, the [pb_glossary id=\"180\"]SUM[\/pb_glossary], and [pb_glossary id=\"182\"]AVERAGE[\/pb_glossary] functions.<\/p>\r\n<p style=\"text-align: justify\"><strong>The SUM Function<\/strong><\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Type the contents in their respective cells as shown in the Figure below. The contents are five car manufacturers with their revenues. The total and average revenues will be calculated using the SUM and AVERAGE functions.<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Use the default font and font size. Adjust any column width if necessary. It is advisable to save the workbook before you proceed much further to avoid losing your work.<\/p>\r\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2023\/12\/image1.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.466666666667px\"><\/p>\r\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.1 Type the contents in their respective cells as shown.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">After typing all the contents above, create a formula to calculate the total revenue in cell B7 using the SUM function. The total revenue will include all the car manufacturers\u2019 revenues from cell B2 until cell B6. Click cell B7 to make it an active cell and type =SUM (B2:B6) as the formula using the SUM function.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\r\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image2-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.728608923885px\"><\/p>\r\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.2 Type the formula using the SUM function.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">After typing the formula, you can press Enter as usual to let Excel execute the formula and the active cell moves to the next cell below, cell B8 or you can press Ctrl+Enter to also let Excel execute the formula but the active cell stays in the cell B7. Let\u2019s press Ctrl+Enter. You will see the SUM function in the Formula Bar and the formula result in cell B7.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\r\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image3-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.728608923885px\"><\/p>\r\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.3 Observe the SUM function as shown in the Formula Bar<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Without the SUM function, you must write a longer formula using all the included cell references and a plus symbol (+), such as =B2+B3+B4+B5+B6. With the SUM function, the formula is shortened to =SUM (B2:B6).<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, let\u2019s calculate the average revenue of the five car manufacturers\u2019 revenues using the AVERAGE function.<\/p>\r\n<p style=\"text-align: justify\"><strong>The AVERAGE Function<\/strong><\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Click cell B8 to make it an active cell and type =AVERAGE (B2:B6) as the formula using the AVERAGE function.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\r\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image4-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.733333333333px\"><\/p>\r\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.4 Type the formula using the AVERAGE function.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">After typing the formula, you can press Enter as usual to let Excel execute the formula and the active cell moves to the next cell below, cell B9 or you can press Ctrl+Enter to also let Excel execute the formula but the active cell stays in the cell B8. Let\u2019s press Ctrl+Enter. You will see the AVERAGE function in the Formula Bar and the formula result in cell B8.<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\r\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image5-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.733333333333px\"><\/p>\r\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.5 Observe the SUM function as shown in the Formula Bar<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">Without the AVERAGE function, you must write a longer formula using all the included cell references and a plus symbol (+), such as =(B2+B3+B4+B5+B6)\/5. With the AVERAGE function, the formula is shortened to =SUM (B2:B6).<\/p>\r\n<p class=\"import-MyText\" style=\"text-align: justify\">The above SUM and AVERAGE functions are among the most popular functions among Excel users. You can learn more about other functions that suit your purpose on your own by exploring the functions from within Excel itself or from other sources such as the Internet.<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">That's all for this Chapter.<\/p>\r\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">You're awesome!<\/p>\r\n\r\n<\/div>","rendered":"<div class=\"chapter-4:-sum-and-average-functions\">\n<div class=\"textbox textbox--learning-objectives\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\" style=\"text-align: justify\">Learning Objectives<\/p>\n<\/header>\n<div class=\"textbox__content\" style=\"text-align: justify\">\n<ol>\n<li>Use the SUM function.<\/li>\n<li>Use the AVERAGE function.<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Apart from using mathematical operators in your formulas, you can also use functions that can help to quickly create formulas. For example, the function that adds the values in cells or a range of cells is called the SUM function.<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">To illustrate, the following formula calculates the values in ten cells without using a function:<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">=A1+A2+A3+A4+A5+A6+A7+A8+A9+A10<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">This is not pretty, isn\u2019t it? This can be prone to mistakes such as missing a cell reference or typing the wrong cell reference. With the SUM function, your formula would be shortened to:<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">=SUM (A1:A10)<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">As usual, start with the equal sign (=) to create a formula and then followed by the SUM function. In brackets, type the first cell reference, A1, and the last cell reference, A10 with the colon symbol (:) in between the cell references. It tells Excel to include all cells between the two endpoint cell references, all cells from cell A1 until cell A10.<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Much simpler, right? The SUM function adds the values from a range of cells, from cell A1 to cell A10.<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">In this chapter, you will learn to use two popular functions in Excel, the <a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_76_180\">SUM<\/a>, and <a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_76_182\">AVERAGE<\/a> functions.<\/p>\n<p style=\"text-align: justify\"><strong>The SUM Function<\/strong><\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Type the contents in their respective cells as shown in the Figure below. The contents are five car manufacturers with their revenues. The total and average revenues will be calculated using the SUM and AVERAGE functions.<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">Use the default font and font size. Adjust any column width if necessary. It is advisable to save the workbook before you proceed much further to avoid losing your work.<\/p>\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2023\/12\/image1.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.466666666667px\" \/><\/p>\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.1 Type the contents in their respective cells as shown.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">After typing all the contents above, create a formula to calculate the total revenue in cell B7 using the SUM function. The total revenue will include all the car manufacturers\u2019 revenues from cell B2 until cell B6. Click cell B7 to make it an active cell and type =SUM (B2:B6) as the formula using the SUM function.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image2-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.728608923885px\" \/><\/p>\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.2 Type the formula using the SUM function.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">After typing the formula, you can press Enter as usual to let Excel execute the formula and the active cell moves to the next cell below, cell B8 or you can press Ctrl+Enter to also let Excel execute the formula but the active cell stays in the cell B7. Let\u2019s press Ctrl+Enter. You will see the SUM function in the Formula Bar and the formula result in cell B7.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image3-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.728608923885px\" \/><\/p>\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.3 Observe the SUM function as shown in the Formula Bar<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Without the SUM function, you must write a longer formula using all the included cell references and a plus symbol (+), such as =B2+B3+B4+B5+B6. With the SUM function, the formula is shortened to =SUM (B2:B6).<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Now, let\u2019s calculate the average revenue of the five car manufacturers\u2019 revenues using the AVERAGE function.<\/p>\n<p style=\"text-align: justify\"><strong>The AVERAGE Function<\/strong><\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Click cell B8 to make it an active cell and type =AVERAGE (B2:B6) as the formula using the AVERAGE function.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image4-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.733333333333px\" \/><\/p>\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.4 Type the formula using the AVERAGE function.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">After typing the formula, you can press Enter as usual to let Excel execute the formula and the active cell moves to the next cell below, cell B9 or you can press Ctrl+Enter to also let Excel execute the formula but the active cell stays in the cell B8. Let\u2019s press Ctrl+Enter. You will see the AVERAGE function in the Formula Bar and the formula result in cell B8.<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">See the Figure below.<\/p>\n<p class=\"import-MyFigure\" style=\"text-align: justify\"><img decoding=\"async\" src=\"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-content\/uploads\/sites\/112\/2024\/09\/image5-3.png\" alt=\"image\" width=\"601.733333333333px\" height=\"316.733333333333px\" \/><\/p>\n<p class=\"import-MyFigureText\" style=\"text-align: justify\">Figure 4.5 Observe the SUM function as shown in the Formula Bar<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">Without the AVERAGE function, you must write a longer formula using all the included cell references and a plus symbol (+), such as =(B2+B3+B4+B5+B6)\/5. With the AVERAGE function, the formula is shortened to =SUM (B2:B6).<\/p>\n<p class=\"import-MyText\" style=\"text-align: justify\">The above SUM and AVERAGE functions are among the most popular functions among Excel users. You can learn more about other functions that suit your purpose on your own by exploring the functions from within Excel itself or from other sources such as the Internet.<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">That&#8217;s all for this Chapter.<\/p>\n<p class=\"import-NormalWeb\" style=\"text-align: justify\">You&#8217;re awesome!<\/p>\n<\/div>\n<div class=\"glossary\"><span class=\"screen-reader-text\" id=\"definition\">definition<\/span><template id=\"term_76_180\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_76_180\"><div tabindex=\"-1\"><p>The SUM function totals the values in two or more cells and then displays the result in the cell containing the function. For example, the formula =SUM(M2:M10) adds the values in cells M2 until M10.<\/p>\n<\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><template id=\"term_76_182\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_76_182\"><div tabindex=\"-1\"><p>The AVERAGE function is used to calculate the arithmetic mean of a given set of arguments. For example, if the range B1:B20 contains numbers, the formula =AVERAGE(B1:B20) returns the average of those numbers.<\/p>\n<\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><\/div>","protected":false},"author":91,"menu_order":4,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":"cc-by"},"chapter-type":[],"contributor":[],"license":[53],"class_list":["post-76","chapter","type-chapter","status-publish","hentry","license-cc-by"],"part":27,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/users\/91"}],"version-history":[{"count":3,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/76\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/76\/revisions\/222"}],"part":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/parts\/27"}],"metadata":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapters\/76\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/pressbooks\/v2\/chapter-type?post=76"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/contributor?post=76"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/excelforabsolutebeginners\/wp-json\/wp\/v2\/license?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}