How to Sort the Rows in the Pivot Table in Google Sheets
Simple 2-step guide on how to sort pivot table rows in Google Sheets. Perfect for enhancing your data analysis and improving your spreadsheet knowledge!
The Pivot Table is Google Sheets’ answer to Microsoft Excel’s PivotTable feature. This feature allows the user to quickly summarize a large amount of structured data through few clicks, giving the user a powerful tool for free. Pivot Table can be a bit more challenging to tame, but this tutorial will help you master it by considering the common demands of data analysis.
When you select the column that will contain the label of the rows, Pivot Table will automatically sort it in ascending order: from A to Z for the names and labels and from smallest to biggest for the numbers. What if you want to sort it using other data? We will consider it in this tutorial.
We will start with a Pivot Table where we list all the products sold, the number of items sold for each product, the total sales from each product, and the total profit from each.
Let’s say you want to sort it such that the product with the biggest profit will be on the top. Here are the steps:
Step 1: Look for the Rows label in the Pivot table editor. The listed column used for the rows has a label Sort by with a drop-down list below it. Click on the drop-down list.
Step 2: Since we want to sort it with the biggest profit first, select SUM of profit. Afterward, click on the drop-down box below Order and change the order to Descending.
Here it is! Clearly, the loaf bread is the breadwinner among our products. This will help us decide on which items to prioritize on selling more.