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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter excel by unique...
Power Automate
Unanswered

Filter excel by unique column and create new file

(0) ShareShare
ReportReport
Posted on by 14

Hi all.

I´m trying to do the following:

I have an excel file stored in sharepoint.

I´m trying to filter excel by unique column and create a new file.

 

Vickymartigarro_0-1682344874604.png

 

In this example, i wish to have created 3 new excel files (one for each state).

Does someone know how to do this?

 

Thank you!!

 

Categories:
I have the same question (0)
  • Vickymartigarro Profile Picture
    14 on at

    Hi @DamoBird365 , could you maybe help me with this?
    Thank you!!

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Vickymartigarro 

     

    If you have access to Office Scripts, you could check out https://youtu.be/hW47n-StNUc and split your data into new sheets. This could be adapted to return the data of each sheet back to Power Automate and generate new files using either office scripts or graph API - something like https://youtu.be/4g8Lh0gzEnc or https://youtu.be/mNwEk7hLdfE.

     

    Another video, if you are relatively new to Power Automate, check out https://youtu.be/pwJ73jFEtDQ where I convert Excel into unique HTML tables.  You could replace the HTML table action with creating a new Excel File from one of the videos above. 


    Cheers
    Damien

  • Vickymartigarro Profile Picture
    14 on at

    Thank you @DamoBird365 !! Your video was super!!

    I tried changing the html table to creation a new file. I have succesfully been able to creat the files, but when i try to open them, an error pops up and i cant see the information inside.

    Has this occured to you before?
    Thanks!!

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    @Vickymartigarro 

    Glad they’ve been of help and you’ve made it this far 👍 what’s the error? Can you share some more detail? Have you included the file extension xlsx when creating the file? 

    Damien

  • Vickymartigarro Profile Picture
    14 on at

    @DamoBird365 
    Yes, i added the extension:

    Vickymartigarro_0-1682358865462.png

     

    But when i open the excel this error appears:

    Translation in english would be: "Excel cannot open the file "Asoprofarma.xlsx" because the format or the extension are not valid. Check that the file has not been corrupted and that the file extension and format match"

    Vickymartigarro_1-1682359156671.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 315 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 273 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 117 Super User 2026 Season 1

Last 30 days Overall leaderboard