So, the basis of what I am attempting to do is have the sheet "Employee Hours" order the rows dependant on the persons position in "Column D" – So, for example if an individuals rank is changed to Assistant Manager, Senior Staff, they will be ordered correctly.
Either works, either formula’s or google script
Example: https://docs.google.com/spreadsheets/d/1wuL8rJd0zaGQROF5rhB_S9Xiv6eo8x6uOCd64gWcexM/edit?usp=sharing
I have attempted some forumlas, and tried looking up some scripts but nothing to help.
2
Answers
On a new sheet create a staff seniority table, something like this:
Then create a named range over the data rows and call it
Seniority
On your staff listing page add a new column called Seniority and populate it with a lookup from this range:
You can now sort the sheet (or just some range) by the Seniority column, and the Job Titles will appear in the correct order.
You can hide the Seniority column for cosmetic purposes if it suits you.
This can be automated by some script that fits with your other code. I leave that as an exercise for you.
Sorting based upon position
gs:
Sort Object:
Data: