Let's say I want Google Doc to automagically sort some data, for example Coloumn C. How do I do that?
I know that I can manually sort data by right-clicking and selecting "sort data", but this is not what I'm looking for.
|
Let's say I want Google Doc to automagically sort some data, for example Coloumn C. How do I do that? I know that I can manually sort data by right-clicking and selecting "sort data", but this is not what I'm looking for. | ||||
|
feedback
|
|
You can use the For example, say I have Sheet1 with my data:
Then in Sheet2, cell A1, I would put this function:
This would show my data, but sorted by column C (the third column), ascending.
| |||||
|
feedback
|
|
It is also possible to use Google Apps Scripts to achieve automatic in-place sorting of the data. This may be more difficult to achieve and more error-prone (I'd still go for William Jackson's solution, +1 BTW), but I thought it was interesting enough to show. I have a sheet that looks like this:
I added a new script, using these steps:
Note: In the above script,
Your table will most likely differ from mine, so these values should be adjusted accordingly. | |||||||||||
feedback
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.