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 / Split excel file to mu...
Power Automate
Answered

Split excel file to multiple csv files based on column value

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I have already tried multiple solutions found on forum but none works for me.

I have an excel file one OneDrive that contains following table:

 

 

ItemValue
11
12
13
21
22
23

 

I would like to create a flow that filters the table for each Item and saves it as new file named Item.

Desired output would look like this:

 

File name: "1"

ItemValue
11
12
13

 

File name: "2"

ItemValue
21
22
23

 

Any help would be appreciated.

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    on at

    Hi @Maniu ,

    I made a template for your reference

    Here is excel:

    vchengfenmsft_1-1678784879425.png

     

    vchengfenmsft_0-1678784866922.png

    Here is flow:

    Take out the "Item" column with Select.

    vchengfenmsft_7-1678785070389.png

    and then Union will get the "Item" array to remove duplication by deduplication

    vchengfenmsft_8-1678785110812.png

    vchengfenmsft_9-1678785145797.png

     

    Here is result:

     

    vchengfenmsft_2-1678784910108.png

    vchengfenmsft_5-1678784976498.png

     

    vchengfenmsft_3-1678784923771.png

    vchengfenmsft_6-1678785005372.png

     

    vchengfenmsft_4-1678784936912.png

     

     

    Best Regards

    Cheng Feng

     

  • Maniu Profile Picture
    8 on at

    Well, thank you for your fast response.

     

    I did as you wrote, saved the flow, and try to run it but I get that it is unsuccessful.

     

    Here is re-created template I did. (edit: changed to ENG)

     

    1.jpg

    2.jpg

    3.jpg

    And here's result:

     

    Maniu_0-1678794189833.png

     

  • v-chengfen-msft Profile Picture
    on at

    Hi @Maniu ,

    Can you provide a screenshot of your error message?

     

    This can effectively guide the location of the problem.

     

    Best Regards

    Cheng Feng

  • grantjenkins Profile Picture
    11,063 Moderator on at

    From looking at the screenshots, it looks like it might be due to no space in the Filter Query between eq and the single quote.

    eq'
    
    //should be
    
    eq '

    grantjenkins_0-1678861875777.png

     

  • Maniu Profile Picture
    8 on at

    Thank you for help!

     

    @v-chengfen-msft:

    There wasn't any error message except status - failed on the flow screen:

     

    Maniu_0-1678862790410.png

     

    @grantjenkins:

    I was able to figure that out after checking the flow another time and it didn't help.

     

    However, today in the morning I just pressed run and it worked.

     

    Maniu_1-1678862976289.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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard