{"id":10032,"date":"2018-12-25T15:46:31","date_gmt":"2018-12-25T14:46:31","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=10032"},"modified":"2024-04-01T21:24:35","modified_gmt":"2024-04-01T19:24:35","slug":"sort-formula-in-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/sort-formula-in-excel\/","title":{"rendered":"SORT Formula in Excel"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>Sorts a table based on a column and order specified<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=SORT(<span style=\"color: #0000ff\">array<\/span>, <span style=\"color: #ff6600\">[sort_index]<\/span>, <span style=\"color: #339966\">[sort_order]<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=SORT(<span style=\"color: #0000ff\">data to be sorted<\/span>, <span style=\"color: #ff6600\">[which column to be used for sorting]<\/span>, <span style=\"color: #339966\">[ascending or descending order]<\/span>)<\/p>\n<hr \/>\n<p>Did you know that you can now sort your table data with an Excel Formula? Yes you can! It is definitely possible now with\u00a0<strong><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/sort-by-date-in-excel\/\" target=\"_blank\" rel=\"noopener\">Excel&#8217;s SORT<\/a> Formula<\/strong>. It is a new formula introduced in <strong>Office 365 released in 2018<\/strong>!<\/p>\n<p>We have a tax table that we want to sort by the tax rate in a\u00a0<strong>descending order<\/strong>.<\/p>\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\/uTAzjyH7PmA?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"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\/SORT-FORMULA.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-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\">SORT-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>SORT\u00a0<\/i>function in a blank cell<\/strong>:<\/p>\n<h2 style=\"text-align: center\"><span style=\"color: #0000ff\">=SORT(<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SORT Formula in Excel\" class=\"aligncenter size-full wp-image-10427\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-01.jpg\" alt=\"SORT Formula in Excel\" width=\"673\" height=\"266\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-01.jpg 673w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-01-300x119.jpg 300w\" sizes=\"(max-width: 673px) 100vw, 673px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000\"><strong>STEP 2:<\/strong><\/span>\u00a0The <b>SORT\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\/sort-formula-in-excel\/#array\" title=\"array\">array<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/sort-formula-in-excel\/#sort_index\" title=\"[sort_index]\">[sort_index]<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/sort-formula-in-excel\/#sort_order\" title=\"[sort_order]\">[sort_order]<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"array\"><\/span><span style=\"color: #0000ff\"><em><strong>array<\/strong><\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is the data to be sorted?<\/strong><\/p>\n<p><em>Select the cells containing the tax data, do not include the headers:<\/em><\/p>\n<h2 style=\"text-align: center\">=SORT(<span style=\"color: #0000ff\">C9:D14,<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SORT Formula in Excel\" class=\"aligncenter size-full wp-image-10428\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-02.jpg\" alt=\"SORT Formula in Excel\" width=\"677\" height=\"265\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-02.jpg 677w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-02-300x117.jpg 300w\" sizes=\"(max-width: 677px) 100vw, 677px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"sort_index\"><\/span><span style=\"color: #0000ff\"><em><strong>[sort_index]<\/strong><\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is the column to be used for sorting?<\/strong><\/p>\n<p><em>We specify the column number here. Since the tax rate column is the second column, place in 2.<\/em><\/p>\n<h2 style=\"text-align: center\">=SORT(C9:D14,<span style=\"color: #0000ff\"> 2,<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SORT Formula in Excel\" class=\"aligncenter size-full wp-image-10429\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-03.jpg\" alt=\"SORT Formula in Excel\" width=\"679\" height=\"270\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-03.jpg 679w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-03-300x119.jpg 300w\" sizes=\"(max-width: 679px) 100vw, 679px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"sort_order\"><\/span><span style=\"color: #0000ff\"><em><strong>[sort_order]<\/strong><\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is the sort order? 1 for Ascending, -1 for Descending order.<\/strong><\/p>\n<p><em>Since we want descending order, place in -1.<\/em><\/p>\n<h2 style=\"text-align: center\">=SORT(C9:D14, 2,<span style=\"color: #0000ff\"> -1)<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SORT Formula in Excel\" class=\"aligncenter size-full wp-image-10430\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-04.jpg\" alt=\"SORT Formula in Excel\" width=\"672\" height=\"268\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-04.jpg 672w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-04-300x120.jpg 300w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now it gets sorted magically!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SORT Formula in Excel\" class=\"aligncenter size-full wp-image-10431\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-05.jpg\" alt=\"SORT Formula in Excel\" width=\"682\" height=\"267\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-05.jpg 682w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SORT-FORMULA-05-300x117.jpg 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #0000ff\"><strong>How to Use the SORT Formula in Excel<\/strong><\/span><\/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? Sorts a table based on a column and order specified Formula breakdown: =SORT(array, [sort_index], [sort_order]) What it means: =SORT(data to be sorted, [which column to be used for sorting], [ascending or descending order]) Did you know that you can now sort your table data with an Excel Formula? Yes you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17715,"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":[12,3,563],"tags":[142,512,90],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/10032"}],"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=10032"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/10032\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17715"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=10032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=10032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=10032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}