Power Automate Excel to Word Template

Power Automate, formerly known as Microsoft Flow, provides an excellent way to automate repetitive tasks in Office 365 applications. One such example is using Power Automate to convert Excel templates into Word documents.

The process involves creating a flow that uses the “Get file content” action to retrieve the Excel template, then applies formatting and data manipulation using the “Apply to each” and “Set variable” actions, finally, converts the output into a Word document using the “Create file” action. Here are the steps to implement this:

Step 1: Create a new flow in Power Automate
Start by logging into your Office 365 account and navigating to the Power Automate application. Click on the “New flow” button to begin creating a new automated process.

Step 2: Add the “Get file content” action
Search for the “Get file content” action and add it to your flow. This action allows you to retrieve the contents of an Excel file as JSON data. Configure the action by specifying the Excel file location, selecting the sheet you want to work with, and choosing the range or rows and columns to include.

Step 3: Add the “Apply to each” action
The next step is to apply formatting and data manipulation to your Excel data using the “Apply to each” action. This action allows you to iterate through a collection of items (in this case, Excel rows) and perform specific actions on each item.

Configure the action by selecting the “Get file content” output as the source for the iteration and specifying the action you want to perform on each row (e.g., formatting data, filtering, or setting variables).

Step 4: Add the “Set variable” action
The “Set variable” action is used to set a value for a specific variable in your flow. In this case, you can use it to store the formatted Excel data that will be used later in the process.

Configure the action by specifying the name of the variable and the value to assign (in this case, the formatted Excel data).

Step 5: Add the “Create file” action
The final step is to convert your formatted Excel data into a Word document using the “Create file” action. This action allows you to generate a new file based on a template or by applying formatting and styles.

Configure the action by selecting the “Set variable” output as the source for the Word document generation, specifying the file type (Word), and choosing the template or settings for the generated file.

Step 6: Test your flow
Once you’ve completed the above steps, it’s time to test your flow. Start a new instance of the flow by clicking the “Run” button, and Power Automate will execute the flow using the specified inputs. Monitor the output to ensure that the Word document is generated correctly.

Step 7: Deploy and use
Once you’ve tested and verified your flow, you can deploy it to production or share it with others. This allows you to automate the conversion of Excel templates into Word documents on a regular basis, saving time and increasing efficiency in your workflow.

In summary, using Power Automate to convert Excel templates into Word documents involves creating a new flow, retrieving the Excel file content, applying formatting and data manipulation, setting variables, generating a Word document, and testing the flow. With these steps, you can automate this process and streamline your workflow.