As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [sorting]

Sorting is the process of applying some order to a collection of items.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

Merging data sets from two tables with origin reference [duplicate]

In a Google Sheet, I have multiple tables containing a list of dates. I want to create a single (sorted) list containing all the dates and the table they came from. Table foo: 1.1.19 3.1.19 Table ...
michas's user avatar
  • 101
-1 votes
2 answers
4k views

Cannot Find Function 'getRange' in Google Script

I'm working on setting up a series of scripts for a google sheet where I want to be able to auto sort based off of when something gets entered into the third column, sorting first by the first column (...
user220818's user avatar
0 votes
1 answer
408 views

Having a formula output to a different cell

I have a Google Sheet in the following format: ID | VAL ------------- 1 | dataH 2 | dataW 3 | dataX 4 | dataC 5 | dataG 6 | dataL ... | ... ID and VAL are on cells A1 and B1, ...
bigyihsuan's user avatar
1 vote
1 answer
26 views

How do I make one filter take into consideration the order of other columns?

I'm using the Filter (the one you create with the button in 'menus') to sort my table, but when I click the filter icon in a column's header and select "Sort A→Z", it only applies to that column. ...
Unknow0059's user avatar
0 votes
1 answer
20 views

Locking information in rows together

I have a Google sheet with contact information that is accessed by many people. These people need to have the ability to sort information and edit it. Some users, when sorting, accidentally only ...
Grace Porter's user avatar
1 vote
1 answer
114 views

Sort Google Spreadsheets so it returns 'alternating' values in a column

How can I sort a random list in Google Sheets so it returns alternating values? The current random list looks like this: fName lName Room ID ----------------------------------- Sara Don ...
Ed Urag's user avatar
  • 11
-1 votes
1 answer
22 views

Sorting column A with drop-down and column B with checkbox

I have a spreadsheet that I use to run a foosball tournament, and in column A I have a dropdown data validation that will let me select a players name. In Column B I have a checkbox that I check once ...
Bryan's user avatar
  • 1
0 votes
1 answer
56 views

Auto sorting / copying data based on inputted data?

Sorry if this is a bit confusing or if I’m not explaining this well enough. Using my provided picture as an example how would one auto copy data that gets inputted into that table based on estimated ...
4tWinks's user avatar
1 vote
1 answer
50 views

Sort by a Column While Maintaining Information in a Row

I had a previous question with lots of support and it solved my problem. The next issue I have is sorting the data while bringing the information in the corresponding row with it. A link to the ...
danstyx's user avatar
  • 25
1 vote
4 answers
14k views

How Can I Sort a Data Range in Google Sheets Based on an Data Range?

I have been looking for a way to sort this information. I need to sort these items in this order: BK, BB, BV, BIV, BIII, BII, BR. I was trying to make a Google Script to get it, but I could only ...
danstyx's user avatar
  • 25
1 vote
1 answer
78 views

Combing two ranges with identical column structure from two different sheets (in same spreadsheet)

I'm doing a simple ticketing system, where I have two sheets, "Form Responses" and "Email Responses" both of which are populated automatically as their names imply (one from a form, one from an email ...
Shadi's user avatar
  • 13
1 vote
0 answers
120 views

How do I sort Glassdoor reviews by rating on a computer?

The Glassdoor mobile app in both iOS and Android has an option to sort and filter reviews. As far as I know this does not exist on the computer version of the Web App. How do I sort Glassdoor ...
isakbob's user avatar
  • 113
4 votes
2 answers
7k views

Google Sheets, how to sort query results manually (Not in query)

My google sheet is importing data from another tab just for sorting purpose, however, when the sort is done manually (through Google Sheet menus), results are unpredictable. The sheet is populated ...
Riccardo's user avatar
  • 529
1 vote
1 answer
2k views

Sorting a sheet without losing group order

I've got a large sheet (tens of thousands rows) grouped into hundreds of different groups. All the groups are collapsed so I only see the top-level cell of each group. Now I want to sort on a these ...
Michael's user avatar
  • 528
3 votes
0 answers
572 views

How to sort Youtube subscriptions by updates?

When I enter YT on the left pane I have "Subscriptions" section sorted by the date of the subscription. So as the effect I could have: Subscriptions A D 1 E F G 7 --- show more --- B 3 ...
greenoldman's user avatar
1 vote
1 answer
2k views

Auto sort script sorting different sheets by different columns

I have a master sheet where data is entered. I would like the other sheets in the book (which currently auto-populate from the master sheet) to sort (in descending order) by their respective column in ...
Greg's user avatar
  • 19
0 votes
1 answer
2k views

Help with ordering a Google Sheets =QUERY

I'm trying to add an ORDER by F to the following query, but every time I do it returns a syntax error. ORIGINAL QUERY (working) =QUERY(data!A2:Z, "select G, E, F, I, J WHERE A = " & C1, "") ...
Mr. B's user avatar
  • 2,817
0 votes
1 answer
6k views

Can I sort rows in Google Sheets by date?

In Google sheets I'm trying to sort rows according to a date column. According to my experience I can use column filtering and choose to sort data from A-Z. However this will give a wrong result for ...
Ben Carp's user avatar
  • 101
1 vote
0 answers
107 views

Change default sorting on Google Analytics' Dashboard page

We have implemented Google Analytics (GA) for our website and ended up creating 25 dashboards. The issue is every time I go to the Customisation => Dashboards on GA, it shows the dashboards sorted by ...
Oshan's user avatar
  • 11
0 votes
1 answer
159 views

I need help with sorting query in Google Sheets

I have a zap that pulls "Email" data from a spreadsheet, I also have a query that pulls "NAME" data from a different spreadsheet, but when I try to sort it, the data gets misplaced, eg. blank rows ...
DevMJ's user avatar
  • 1
5 votes
2 answers
3k views

How to sort Trello cards by date added

Trello is rad. But one thing I haven't figured out: How to sort cards in a list by the date that the cards were added to the list (or to the board)? Also, is it possible to show (as a custom field?) ...
samthebrand's user avatar
  • 5,429
1 vote
1 answer
711 views

Filter View: Sort by custom string order [closed]

Say I have a spreadsheet containing names, dates and a rank. The spreadsheet is by default sorted by date but I want to create a filter view that sorts the spreadsheet by the rank column, i.e., "...
Xeno's user avatar
  • 27
1 vote
2 answers
850 views

Sort a Google Spreadsheets so it returns 'alternating' values in a column

I have a list of hundreds of students that contains the following data. The only two values that will appear in the gender column (col 3) are male or female: Current List fName | lName | ...
Mr. B's user avatar
  • 2,817
0 votes
1 answer
2k views

How to filter range and return only specific columns?

This is what I have tried just yet: =QUERY(FILTER(Recherche!A4:O1002), "select Col1, Col15, Col2, Col3, Col4") based on this format =QUERY(FILTER(B:D,D:D>=2),"select Col2, Col1") What I get is ...
MSD's user avatar
  • 169
0 votes
2 answers
587 views

Sorting Google Sheets by Mailing Address

I have a spreadsheet in Google Sheets (and Excel) that contains companies from many countries. The address cell has the full address including the country. So: Company name | Full Address | phone ...
Alex's user avatar
  • 1
1 vote
0 answers
741 views

How to automatically sort a filtered list that's always changing in Google Sheets?

I have a complex spreadsheet that rolls up data from all over the place into a filtered list. We need to sort this filtered list, along with notes added afterward in columns to the right of the filter....
Marie's user avatar
  • 11
4 votes
1 answer
21k views

Can I protect rows in a Google Docs spreadsheet from sorting?

I can sort a Google Docs spreadsheet on any column, but that sorts ALL of the rows. I don't want to sort the rows that contain the column labels. Is there a way to protect them from being sorted? I ...
Phil Goetz's user avatar
3 votes
1 answer
6k views

Auto Sort Google Sheet with onEdit function

The following function successfully sorts my file (containing 3 sheets) individually. When I hit the "play" button on the script, it properly sorts (as expected) the current (active) sheet. Since my ...
Joel's user avatar
  • 31
0 votes
1 answer
1k views

How to sort spreadsheet by date+time column but with a modified hour column?

I have a spreadsheet generated by a Google form and it produces a standard spreadsheet with a full timestamp column, that is two hours behind, and an hour column (hh:mm am/pm) that the user fills in ...
user avatar
4 votes
1 answer
8k views

How to sort groups of rows in Google Sheets?

I have a spreadsheet with lots of related rows. How can I sort the entire sheet in such a way that rows that belong together stay together in groups, and the groups instead are sorted by some common ...
Zom-B's user avatar
  • 370
3 votes
1 answer
1k views

How to sort by date with Google Spreadsheet?

Consider the following text in a single column in a spreadsheet: AAPL 2015 Dec 18 C @ 185.000 AAPL 2016 Mar 18 C @ 160.000 ... How to sort by date? I tried extracting the date using regex, but it ...
B Seven's user avatar
  • 487
2 votes
1 answer
8k views

Sorting alphabetically (A-Z) ignoring beginning "A", "An" and "The" using a script

I have a Movie list using Google Sheets that I would like do some sorting with using a script rather than a formula. Column A is the movie Title. I would like to be able to sort the movie titles ...
Computer Candy's user avatar
-2 votes
1 answer
2k views

How to sort names in column alphabetically ignoring "The", "An" & "A"... and then pull names (skipping duplicates) into another tab [closed]

This is for a Movie Have/Want list using Google Sheets. Problem 1: Column A is the movie Title. I would like to be able to sort the movie titles alphabetically but ignore when a movie title begins ...
Computer Candy's user avatar
2 votes
1 answer
7k views

Filter Google Spreadsheet Array Formula

I have a spreadsheet with 2 columns. B1 contains a custom function that returns an array that overflows to fill the column. I want to create a few filter views that each show all entries with 1 given ...
DeadEli's user avatar
  • 263
12 votes
6 answers
14k views

Sort Google Search results by date?

Is there a way to sort Google Search results by date? (I know how to limit the search to a particular time period.)
aparente001's user avatar
  • 1,046
0 votes
1 answer
52 views

Is it possible to sort topics in Rizzoma by number of votes?

Overview As Google Moderator is shutting down on June 30, 2015 (more Info) I would like to learn about alternatives, mainly for educators. Rizzoma topics could include the Yes/No/Maybe Wave gadget, so ...
Rubén - People First's user avatar
3 votes
1 answer
2k views

Auto sort data but by sheet not range

I found this script from How can I apply a script to only one specific sheet within a spreadsheet to auto sort a column: function onEdit(){ var sh0 = SpreadsheetApp.getActiveSpreadsheet()....
moobot's user avatar
  • 141
3 votes
1 answer
500 views

How to sort Google Sheets columns by row height

I'm working on a sheet that involves multiple columns corresponding to various data. Each column has a varying number of cells of varying heights with wrapped text. What I want to do is make the sheet ...
nagolitica's user avatar
0 votes
1 answer
6k views

Sort Google Drive by date added [duplicate]

Is there a way to sort Google Drive (either iOS or web version) by date that a file was added? It drives me crazy that if I use Gmail to save an attachment to Drive, I can't locate that file ...
spacetyper's user avatar
3 votes
2 answers
9k views

How to sort cells with text and numbers correctly

This is my example list: example file As you can see I am sorting all unique elements in row B. But the "Sprint 9" gets sorted as the highest value, not the lowest. I really have no clue how I can ...
Daniel's user avatar
  • 33
1 vote
1 answer
3k views

How to combine and consolidate rows from multiple sheets into one and sort them?

I've few sheets where rows are populated dynamically via IMPORTXML and ImportJSON with the same columns, but they can't be sorted. So I'd like to generate new sheet which will populate rows from ...
kenorb's user avatar
  • 4,122
6 votes
2 answers
3k views

Prevent Gmail from applying multiple labels

I have recently imported all my mail from Outlook.com and my work email into the gmail accout and I have started to organize the messages using labels. The filters work great and I have managed to ...
lucian's user avatar
  • 161
4 votes
1 answer
2k views

How can I sort all worksheets in my Google spreadsheet on open?

I have successfully been able to sort the first sheet in my Google Spreadsheet onOpen, but I'd like to sort all four spreadsheets onOpen and I can't make this work. I've tried quite a few variations ...
Sarah's user avatar
  • 41
4 votes
3 answers
11k views

Is there a way in Google Sheets to order blank cells first?

When I sort a column in Google Spreadsheets, the blanks always seem to sink to the bottom. Can I have rows with blank cels be organized first / highest? Alternatively, is there a function wherein I ...
New Alexandria's user avatar
1 vote
1 answer
169 views

Sort auto update

I have this table, which is a ranking, whose values are updated automatically (data gathered from other files). What I want is that every time these values are updated the ranking automatically ...
elunicotomas's user avatar
  • 1,763
1 vote
1 answer
278 views

Is there any way sort Trello cards by custom values?

I sort my bucket list by a ((how much it excites me)*(how much value it will bring me)*(probability of success)/(cost in hours)*(days until [self-imposed] deadline)). Is there any way to assign such ...
technillogue's user avatar
1 vote
0 answers
55 views

How to sort posts by topic from people I follow on Pinterest

I want to be able to sort the pins from people I follow by topic. So I want to be able to see only Food posts from people I follow (or Fashion or whatever), not from everyone. Is there any way to do ...
BikerOfTheApocalypse's user avatar
3 votes
0 answers
818 views

How to display and sort all Google+ posts based on most voted video/photo?

I would like to display all Google+ posts into my website and I would like to categorise them into: most voted video/photo most recent video/photo How can I achieve the above? I know how to embed ...
sree's user avatar
  • 179
3 votes
3 answers
11k views

Auto sort of Forms responses so that the most recent one is on top

We use Google Forms to collect guest surveys for our resort. New responses get added to the bottom of the response sheet. While we can manually sort the responses using the time-stamp feature, not ...
user67910's user avatar
3 votes
2 answers
227 views

Altering the Sort Filter in Google Spreadsheets

I live in Australia and when I'm putting in dates, I place the date, followed by month then the year. However when I am filtering/sorting my spreadsheet it's coming up incorrectly. How do I edit ...
Kara's user avatar
  • 31