OfficeDev / OfficeDev/office-scripts-docs-reference
Excel Script to Sort Whole Sheet based on a Column
Open
@alison-mk is already working on this.
Since Aug 17, 2026.
Needs: attention :wave:
- Dominant language
- TypeScript
- Stars
- 71
- Forks
- 36
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 12
Description
Type of issue
Code doesn't work
Feedback
I have a Simple Excel File with Column Labels, 300 Lines of Data, 30 Columns.
What is the simplest Script to Sort by Column D, then Column E, then Column E?
I can easily do it manually with Excel Sort.
Script Editor Recording my steps doesn't work.
Page URL
Content source URL
Author
@o365devx
Document Id
f2167a84-fa9b-7456-c984-d41360060f37
Platform Id
8afaef52-6d8d-454f-a1d4-c77ce09338d2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.