web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter cells in Excel ...
Power Automate
Unanswered

Filter cells in Excel Worksheet

(0) ShareShare
ReportReport
Posted on by 18

Hello,

I am trying to apply the filtering on cells after reading the worksheet in Power Automate Desktop. When the data is loaded into the DataTable, it contains all the rows without filtering. is there any way?

Filter cells in Excel Worksheet.PNG
I have the same question (1)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Hi @billysavior 

    Use find and replace datatable activity and you can filter the value in the datatable.

     

    The result is datatable of row index and column index and you can proceed with the for each to retrieve the data for the particular row and column

     

    Find and replaceFind and replace

    Hope this helps 

    Usha

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @billysavior ,

     

    After applying the filter you need to copy the filtered Data into Different sheet of the excel and then you can read the data from the excel.Then you will get only the filtered data into the DataTable.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • CU-19081609-0 Profile Picture
    18 on at

    I could not create another sheet. As further, I have to edit same sheet fill it after filtering.

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Hi @billysavior 

    That means you need to append to the existing data or you want to erase the previous and write the filtered dat?

    If you want to append then

    Use get free row or free column and using the freerowindex write the data table 

    Or if you want to write the filtered data you better write that into another sheet or new file.

    Then it will be safe the loos of data does not happen.

    If you still want to write the data by erasing previous then take the row count and delete the rows in excel sheet 

    Then write the filtered data in the same sheet.

    Hope this helps

    Usha

     

  • CU-19081609-0 Profile Picture
    18 on at

    Yes, After applying the filter on a column to exclude rows that are already filled. I want to add the data into the rows that are empty into the same excel sheet. @UshaJyothi20 


  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @billysavior 

     

    If possible, could you please elaborate your use case with some examples and screenshot. So that we can assist with more appropriate solution for your issue?

     

     

  • CU-19081609-0 Profile Picture
    18 on at

    From line 12 i read the excel sheet in datatable. That contains all the rows from worksheet even after filtering. In For Loop from line 13, i will have to go one by one row in specific column "results", get the data from column "C" if condition is verify and run vbscript for SAP. Write results into worksheet in last step.

    question.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard