Skip to content

Excel Script to Sort Whole Sheet based on a Column #441

Open

Description

@KenRea-Script

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

https://learn.microsoft.com/en-us/javascript/api/office-scripts/excelscript/excelscript.tablesort?view=office-scripts

Content source URL

https://github.com/OfficeDev/office-scripts-docs-reference/blob/live/docs/docs-ref-autogen/excelscript/excelscript.tablesort.yml

Author

office 365 dev account (@o365devx)

Document Id

f2167a84-fa9b-7456-c984-d41360060f37

Platform Id

8afaef52-6d8d-454f-a1d4-c77ce09338d2

Activity

  1. added
    Needs: triage 🔍
    on Aug 13, 2026
  2. added
    Needs: attention 👋
    and removed
    Needs: triage 🔍
    on Aug 17, 2026
  3. samantharamon commented on Aug 17, 2026

    @samantharamon

    Thanks for reaching out, KenRea-Script.

    Alison McKay (@alison-mk) could you please assist with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Needs: attention 👋

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions