{"id":2316,"date":"2020-06-26T20:39:15","date_gmt":"2020-06-26T18:39:15","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=2316"},"modified":"2024-03-22T19:03:26","modified_gmt":"2024-03-22T18:03:26","slug":"calculate-total-sales-with-an-array-formula-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/calculate-total-sales-with-an-array-formula-excel\/","title":{"rendered":"Calculate Total Sales in Excel With An Array Formula"},"content":{"rendered":"<p>An Array Formula performs an <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/free-excel-templates-and-spreadsheets\/\" target=\"_blank\" rel=\"noopener\">Excel<\/a> operation (math, comparative, join, or function argument) on an array or range of data. \u00a0This could be a range of cells, a worksheet reference, or a defined name.<\/p>\n<h4>One of the most popular uses of an array formula is to calculate Total Sales in Excel.<\/h4>\n<p>If we had to calculate Total Sales in Excel the normal way, we would have to create a &#8220;<strong>helper column<\/strong>&#8221; for the Totals column and then enter a formula to Sum all the Totals.<\/p>\n<p>Using an Array Formula we skip the &#8220;helper column&#8221; and just enter one formula only. \u00a0Quick and simple!<\/p>\n\n<p><span style=\"text-decoration: underline; color: #0000ff;\"><a class=\"IRPP_minimalist icon-download\" style=\"color: #0000ff; text-decoration: underline;\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/Array-Total-Sales.xlsx\" rel=\"\" target=\"_blank\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<\/span><span class=\"postTitle px-3\">Array-Total-Sales.xlsx<\/span><\/a><\/span><\/p>\n<p>Let&#8217;s do an example of an Array Formula to Calculate Total Sales in Excel for various products.<\/p>\n<p>Follow the <strong>step-by-step guide below<\/strong> on How to <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/reverse-sales-tax-calculator\/\" target=\"_blank\" rel=\"noopener\">calculate <strong>Total Sales<\/strong>\u00a0in<\/a> Excel:<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong><\/span> Enter the SUM\u00a0formula <strong>=SUM(<\/strong><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span>\u00a0Select\u00a0the array\/range of data for the UNITS SOLD, enter the multiplier sign <strong>*<\/strong> and select the array\/range of the data for the UNIT PRICE:<\/p>\n<p><strong>=SUM(<span style=\"color: #0000ff;\">C13:C16<span style=\"color: #000000;\">*<\/span><\/span><span style=\"color: #ff0000;\">D13:D16<\/span>)<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-sum.png\" rel=\"attachment wp-att-2319\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2319\" title=\"Calculate Total Sales in Excel With An Array Formula\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-sum.png\" alt=\"Calculate Total Sales in Excel With An Array Formula\" width=\"384\" height=\"224\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-sum.png 384w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-sum-300x175.png 300w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3:<\/strong><\/span> Instead of pressing ENTER to evaluate the formula, you need to press <strong>CTRL+SHIFT+ENTER<\/strong> to turn the formula into an Array Formula which will look like this:<\/p>\n<p><strong>{=SUM(<span style=\"color: #0000ff;\">C13:C16<span style=\"color: #000000;\">*<\/span><\/span><span style=\"color: #ff0000;\">D13:D16<\/span>)}<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-formula-bar.png\" rel=\"attachment wp-att-2320\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2320 size-full\" title=\"Calculate Total Sales in Excel With An Array Formula\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-formula-bar.png\" alt=\"Calculate Total Sales in Excel With An Array Formula\" width=\"339\" height=\"286\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-formula-bar.png 339w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-formula-bar-300x253.png 300w\" sizes=\"(max-width: 339px) 100vw, 339px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 4:<\/strong> <\/span>By <strong>pressing F9 on the selected formula array<\/strong> will give you the resulting array of numbers (press CTRL+Z to get out of this mode when you are done checking the formula results):<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-f9.png\" rel=\"attachment wp-att-2321\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2321\" title=\"Calculate Total Sales in Excel With An Array Formula\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-f9.png\" alt=\"Calculate Total Sales in Excel With An Array Formula\" width=\"312\" height=\"39\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-f9.png 312w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/02\/array-f9-300x38.png 300w\" sizes=\"(max-width: 312px) 100vw, 312px\" \/><\/a><\/p>\n<p>If we had to\u00a0get the above result using a non-Array <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/top-excel-formulas-function-examples-to-get-better-at-microsoft-excel\/\" target=\"_blank\" rel=\"noopener\">Formula<\/a> we would have to create a helper column which multiplies UNITS SOLD by UNIT PRICE\u00a0and then enter the SUM\u00a0formula to get\u00a0the same result. \u00a0This is double the work!<\/p>\n<p><strong>Further Learning:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/total-bonus-due-with-an-array-lookup-formula-excel\/\" target=\"_blank\" rel=\"noopener\">Total Bonus Due With An Array Lookup Formula<\/a><\/li>\n<li><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/excel-array-formulas-explained\/\" target=\"_blank\" rel=\"noopener\">Excel Array Formulas Explained<\/a><\/li>\n<li><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/autosum-an-array-of-data-in-excel\/\" target=\"_blank\" rel=\"noopener\">Autosum an Array of Data in Excel<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An Array Formula performs an Excel operation (math, comparative, join, or function argument) on an array or range of data. \u00a0This could be a range of cells, a worksheet reference, or a defined name. One of the most popular uses of an array formula is to calculate Total Sales in Excel. If we had to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17185,"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":[115,3,16],"tags":[119,43],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2316"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=2316"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/2316\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17185"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=2316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=2316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=2316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}