cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,208)