cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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
Highlighted

 

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
Helper I
Helper I

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

Highlighted

 

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

Highlighted

Thank you so much!! This was so helpful! 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (14,459)