You can use a script to automatically sort the table. To do this, go to the tools> script editor. This will open a new window.
Delete the code you see and paste below:
function onEdit(event) { var sh = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var cellColumn = sh.getActiveRange().getColumnIndex(); var currentSheet = sh.getName(); if ((cellColumn == 3) && currentSheet == "enter sheet name here") { var range = sh.getRange("A2:C"); range.sort({column:2, ascending:false}); } }
You will need to change โenter sheet name hereโ to the name of the sheet you want to sort. Be sure to leave quotation marks.
If you want to change the sort so that it grows, change the last line from
ascending:false
to
ascending:true
If you want to change the range of sorted data, you can do this in the line above. It is currently set to sort the range A2:C
source share