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 Excel table dat...
Power Automate
Unanswered

Filter Excel table data then copy to another file

(1) ShareShare
ReportReport
Posted on by 4

Hi,

 

I need help with filtering data in an excel sheet table, then copying filtered data to a new table/sheet.

 

I’m having trouble with taking the filtered information to the new table.

 

Orlando10_0-1671817018939.png

 

any help is appreciated been stuck in this for quite some time, thank you!

Categories:
  • Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hi @Orlando10 

     

    What exactly is the problem? Is there an error.

  • Orlando10 Profile Picture
    4 on at

    Thanks for your message.

     

    No error, I just don’t know how to take the filtered array output back into an excel sheet.

  • grantjenkins Profile Picture
    11,063 Moderator on at

    I'm assuming you aren't using the Filter Query directly on List rows present in a table because the column name you want to filter on has spaces in it.

     

    For this example, I'm using a single worksheet with two tables Table1 and Table2. We will get the data from Table1, filter it, then add the filtered rows to Table2.

     

    The Excel file I'm using for this example is below:

    grantjenkins_0-1671956462079.png

     

    The full flow is below. I'll go into each of the actions.

    grantjenkins_1-1671956506577.png

     

    List rows present in a table retrieves all the rows from Table2. Note that if your column you were filtering on didn't have spaces in it, you would be better to just use the Filter Query directly in here and not use Filter array.

    grantjenkins_2-1671956599646.png

     

    Filter array in this example returns rows where the Country is equal to USA.

    grantjenkins_3-1671956637872.png

     

    We then have an Apply to each that iterates over the Filter array items and adds them to Table2. The expressions used to retrieve the actual values are below.

    //Name
    items('Apply_to_each')?['Name']
    
    //Age
    items('Apply_to_each')?['Age']
    
    //Country
    items('Apply_to_each')?['Country']
    
    //To get your field values you just need to specify your actual column name
    items('Apply_to_each')?['YOUR_COLUMN_NAME']

    grantjenkins_4-1671956788866.png

     

    After running the flow, we would have the following output.

    grantjenkins_5-1671956854706.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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard