cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gemma
Level: Powered On

Create Separate Excel Files Based on Field Value

Hi everyone!

 

I'm just starting to get my feet wet with Microsoft Flow! It's exciting, but I need some advice! Can you seasoned Flow users offer a newbie some advice/point me in the right direction?

My goal is to read in an Excel file and split it into multiple Excel files based on the Location field. For my sample data below, I'd like to generate 3 files - one for Los Angeles, one for San Diego, and one for Santa Ana. 
Sample Data.PNG

 

 

 

 

 

 

So far, I've been able to use Filter Array for one city at a time, but how can I change this to dynamically filter for each city name? 

Here's my flow so far: 

Flow 1.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Also, my Create File step generates a file, but I receive a "Couldn't Open the Workbook" message. How can I configure the Create File step to fix this issue?

Flow 2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Create Separate Excel Files Based on Field Value

 

Hi @gemma ,

 

Please try to use the following methods to configure the Flow.

26.PNG

Details of Apply to each 2:

27.PNG

You may need to set the extension of the file to .xls. After testing, if you set extension to .xlsx, the file cannot be opened.

 

In addition, even if the file is set to .xls, some errors may occur, but you can ignore these errors and open the file. Then format the data in the Excel sheet into a table.

MS Flow does not seem to support such features at the moment, so only these parts can be implemented.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
gemma
Level: Powered On

Re: Create Separate Excel Files Based on Field Value

Hi friends! I just wanted to bump so my question doesn't get lost! ❤️ I super appreciate your help! 

Community Support Team
Community Support Team

Re: Create Separate Excel Files Based on Field Value

 

Hi @gemma ,

 

Please try to use the following methods to configure the Flow.

26.PNG

Details of Apply to each 2:

27.PNG

You may need to set the extension of the file to .xls. After testing, if you set extension to .xlsx, the file cannot be opened.

 

In addition, even if the file is set to .xls, some errors may occur, but you can ignore these errors and open the file. Then format the data in the Excel sheet into a table.

MS Flow does not seem to support such features at the moment, so only these parts can be implemented.

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

gemma
Level: Powered On

Re: Create Separate Excel Files Based on Field Value

Thank you so much!! This was so helpful! 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Coming Soon: T-shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors
Users online (5,755)