Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ZmBYaHaKg3PU86abEbL/sq
Power Automate - Building Flows
Answered

How to remove filter in excel online sheet?

Like (0) ShareShare
ReportReport
Posted on 11 Mar 2021 15:01:26 by 54

Hi All,

Is it possible for delete an filter in online Excel sheet.

My files have that filter and now i cant create a table with power automate.

 

How can i resolve that? 

  • GU22 Profile Picture
    3 on 11 May 2023 at 00:43:06
    Re: How to remove filter in excel online sheet?

    Thank you!! This solves a really annoying problem!

  • Expiscornovus Profile Picture
    31,652 Most Valuable Professional on 12 Mar 2021 at 09:31:37
    Re: How to remove filter in excel online sheet?

    Hi @frixel2,

     

    My script was just an example. You should be able to record your specific office script with the action recorder. So, I believe that would be possible.

     

    Have a look at this:

    https://docs.microsoft.com/en-us/office/dev/scripts/overview/excel#action-recorder

     

  • frixel2 Profile Picture
    54 on 12 Mar 2021 at 08:57:27
    Re: How to remove filter in excel online sheet?

    @Expiscornovus 

    Thanks for your answer, that keeps me opportunnities.

     

    I have try it with the script so you tells above.

    But this script is not remove the filter option from al fiels, This is a script for clear filter(s).

    is it also possible for deleting the filter?

  • Verified answer
    Expiscornovus Profile Picture
    31,652 Most Valuable Professional on 11 Mar 2021 at 16:07:21
    Re: How to remove filter in excel online sheet?

    Hi @frixel2,

     

    It would be possible by using Office Scripts and the Run scripts action:

    https://docs.microsoft.com/en-us/office/dev/scripts/overview/excel

     

    Below is an example.

     

    1. Create an Office Script in the Excel Online File. This should be possible via the Automate tab.

    In this example I am clearing the filter from Column B in my Table1

    function main(workbook: ExcelScript.Workbook)
    {
     let table1 = workbook.getTable("Table1");
     // Clear filter on table table1 column B
     table1.getColumnByName("B")
     .getFilter()
     .clear();
    }

    officescript_removefilter.png

     

    2. Add Run script action to your flow and run this script for your Excel file

    runscriptaction.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started