{"id":89970,"date":"2020-10-15T13:24:00","date_gmt":"2020-10-15T10:24:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-sort-by-multiple-columns-in-google-sheets\/"},"modified":"2020-10-15T13:24:00","modified_gmt":"2020-10-15T10:24:00","slug":"how-to-sort-by-multiple-columns-in-google-sheets","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-sort-by-multiple-columns-in-google-sheets\/","title":{"rendered":"#How to Sort by Multiple Columns in Google Sheets"},"content":{"rendered":"<p><strong>&#8220;#How to Sort by Multiple Columns in Google Sheets&#8221;<\/strong><\/p>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-395627\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2018\/11\/xSheetsHeader.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.Llced4Gk73.jpg\" alt=\"Google Sheets\" width=\"650\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>When you\u2019re analyzing complex data sets in Google Sheets, you can take advantage of its built-in sorting feature to organize the data. You can sort by individual columns or, for more complex data, you can sort by multiple columns.<\/p>\n<p>To do this, you\u2019ll need to open your <a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"http:\/\/sheets.google.com\">Google Sheets<\/a> spreadsheet and select the data set you wish to sort. You can do this manually by selecting the cells using your mouse, or by selecting one of the cells in your data set and pressing Ctrl+A on your keyboard.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>The Beginner&#8217;s Guide to Google Sheets<\/em><\/strong><\/p>\n<p>Once your data is selected, click Data &gt; Sort Range from the Google Sheets menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-687877\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2020\/08\/xGoogle-Sheets-Sort-Range-Option.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.q35QbD6lft.png\" alt=\"To sort data in Google Sheets, select your data set, then press Sort &gt; Sort Range.\" width=\"570\" height=\"370\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>In the \u201cSort Range\u201d option box, you can select how you wish to sort your data.<\/p>\n<p>You can select the column to sort by, as well as whether to sort in ascending or descending order. Click the \u201cData Has Header Row\u201d to be able to select columns by the header cell.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-687878 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2020\/08\/xG-Sheets-Sort-Enable-Header-Row.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.BHX-_K3hsF.png\" alt=\"Click the &quot;Data Has Header Row&quot; checkbox to use column header labels during a sort in Google Sheets\" width=\"478\" height=\"292\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>By default, Google Sheets will only offer one column to sort by. To add multiple columns to your sort options, select the \u201cAdd Another Sort Column\u201d button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-687879 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2020\/08\/xG-Sheets-Sort-Add-Additional-Column.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.1cb6CC0HIu.png\" alt=\"Press &quot;Add Another Sort Column&quot; to add an additional column to your Google Sheets sort.\" width=\"478\" height=\"292\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>When you sort by multiple columns in Google Sheets, the sort will take place in order from top to bottom. For instance, an example spreadsheet has product sales data with product names, sale dates, and prices shown.<\/p>\n<p>If you wanted to sort this data by name and then by the amount sold, you\u2019d want to select the product name column in column A (named \u201cProduct\u201d) first and the amount sold in column C (named \u201cPrice\u201d) second.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-687880 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2020\/08\/xG-Sheets-Sort-Multiple-Columns-Added.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.QHslXh_wGu.png\" alt=\"A Google Sheets sort options box with multiple columns added.\" width=\"474\" height=\"350\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You could sort this in ascending order, starting with product names near the start of the alphabet at the top, then with prices sorted by the smallest amount. Select \u201cA-Z\u201d to sort this way or \u201cZ-A\u201d to sort in descending order instead.<\/p>\n<p>You can mix and match these options, too. For this example, you could sort in ascending order for product names and descending order for sales amounts.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-687881\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2020\/08\/xG-Sheets-Sort-Order-Example.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.ONkkQl256B.png\" alt=\"In the Google Sheets sorting options box, select &quot;A-Z&quot; for ascending order or &quot;Z-A&quot; for descending order.\" width=\"477\" height=\"352\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Once your sorting options are set, select the \u201cSort\u201d button to sort your data. The data in your spreadsheet will be rearranged following the rules set in the \u201cSort Range\u201d options box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-687883\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2020\/08\/xG-Sheets-Example-Sorted-Data.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.ocdevvVlXJ.png\" alt=\"An example data set in Google Sheets, sorted using the built-in sort tool.\" width=\"518\" height=\"375\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>For this example, the data above has been sorted with product names and prices both in ascending order. This is shown clearly with the monitor and mouse products.<\/p>\n<p>Priced at $100, the monitor would come second if the sort was only performed on the \u201cPrice\u201d column (column C). As the sort was performed on the \u201cProduct\u201d column (column A) first, however, the sold monitor was placed ahead of the mouse.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-687884 size-full\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2020\/08\/xG-Sheets-Multiple-Sorted-Data-Examples.png.pagespeed.gp+jp+jw+pj+ws+js+rj+rp+rw+ri+cp+md.ic.n0BScpUXiM.png\" alt=\"Examples of sorted Google Sheets data using single and multiple-column sorts.\" width=\"475\" height=\"517\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can undo any of these sorts by performing another sort on your data set, by pressing the \u201cUndo\u201d button in the menu bar, or by pressing Ctrl+Z on your keyboard.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>All the Best Google Sheets Keyboard Shortcuts<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong>\n<\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener noreferrer\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/687875\/how-to-sort-by-multiple-columns-in-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Sort by Multiple Columns in Google Sheets&#8221; When you\u2019re analyzing complex data sets in Google Sheets, you can take advantage of its built-in sorting feature to organize the data. You can sort by individual columns or, for more complex data, you can sort by multiple columns. To do this, you\u2019ll need to open&#8230;<\/p>\n","protected":false},"author":1,"featured_media":89971,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/thumbcache\/2\/200\/e6e239447571605d567563db0349b16e\/wp-content\/uploads\/2018\/11\/SheetsHeader.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-89970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/89970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=89970"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/89970\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/89971"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=89970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=89970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=89970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}