Power Automate / Flow - Retrieve Data from a Web Page and Include it in Excel Tutorial
Learn how to use Power Automate Desktop to extract information from a website and transfer it into an Excel spreadsheet. With a step-by-step tutorial, you'll create a flow, customize variable names, and initiate a loop to delete and retrieve web data. Discover how to efficiently automate the process, saving you from multiple manual operations. Watch the tutorial now to streamline your data extraction and management tasks!
- 04:35
- 801 views
-
Excel - Cell references
- 1:34
- Viewed 4428 times
-
Excel - Freeze or lock panes
- 1:06
- Viewed 3911 times
-
Excel - How things are organized
- 1:58
- Viewed 4313 times
-
Excel - A closer look at the ribbon
- 3:55
- Viewed 4549 times
-
Excel - Start using Excel
- 4:22
- Viewed 4638 times
-
Excel - Microsoft Search
- 0:34
- Viewed 3582 times
-
Excel - Introduction to Excel
- 0:59
- Viewed 4247 times
-
Power BI - Introduction to Power Bi
- 1:29
- Viewed 7695 times
-
Remove a watermark
- 2:20
- Viewed 31121 times
-
Activate the features of Teams Premium
- 3:48
- Viewed 17274 times
-
Create a quick poll in Outlook with Microsoft Forms
- 3:38
- Viewed 14802 times
-
Collapsible headings
- 3:03
- Viewed 13998 times
-
Change the default font for your emails
- 1:09
- Viewed 13252 times
-
How do I prevent the transfer of an email?
- 2:07
- Viewed 12882 times
-
How to recall or replace a sent email in Outlook Web
- 0:53
- Viewed 12811 times
-
Protect a document shared by password
- 1:41
- Viewed 10979 times
-
Create automatic reminders
- 4:10
- Viewed 10819 times
-
Morph transition
- 0:43
- Viewed 9956 times
-
Remove a watermark
- 2:20
- Viewed 31121 times
-
Activate the features of Teams Premium
- 3:48
- Viewed 17274 times
-
Create a quick poll in Outlook with Microsoft Forms
- 3:38
- Viewed 14802 times
-
Collapsible headings
- 3:03
- Viewed 13998 times
-
Change the default font for your emails
- 1:09
- Viewed 13252 times
-
How do I prevent the transfer of an email?
- 2:07
- Viewed 12882 times
-
How to recall or replace a sent email in Outlook Web
- 0:53
- Viewed 12811 times
-
Protect a document shared by password
- 1:41
- Viewed 10979 times
-
Create automatic reminders
- 4:10
- Viewed 10819 times
-
Morph transition
- 0:43
- Viewed 9956 times
-
Copilot Agents: Analyst
- 03:05
- Viewed 33 times
-
Copilot Agents: Research
- 02:11
- Viewed 39 times
-
Create a Story with Copilot
- 01:19
- Viewed 34 times
-
Create a Draft with Copilot
- 01:35
- Viewed 39 times
-
Clean Up a Table with Copilot
- 01:33
- Viewed 31 times
-
Differentiate Between Copilot Versions
- 02:04
- Viewed 38 times
-
Decode the impact of your communication campaigns
- 02:51
- Viewed 142 times
-
Use Copilot to draft a communication
- 02:18
- Viewed 152 times
-
Create visuals without design skills
- 03:54
- Viewed 155 times
-
Create a brand kit to set the tone
- 03:21
- Viewed 220 times
Objectifs :
This tutorial aims to teach users how to utilize Power Automate Desktop to extract information from a website and transfer it into an Excel spreadsheet, streamlining data management and reducing manual entry tasks.
Chapitres :
-
Introduction to Power Automate Desktop
In this tutorial, we will learn how to use Power Automate Desktop to extract information from a website and transfer it into an Excel spreadsheet. This process will help automate data collection, making it more efficient. -
Creating a New Flow
To start, create a new flow in Power Automate Desktop. Since the flow is more complex, there are no predefined templates available, so we will begin with a blank canvas. Name your flow and confirm your choice. -
Setting Up the Canvas
Once in the canvas space, filter the action column on the left to list the browser actions. The first action is to open Microsoft Edge. Drag and drop this action onto the canvas and enter the URL of the desired platform, choosing to open it in expanded mode (maximized window). -
Opening the Excel File
Next, move to the Excel actions to open your target file, which in this example is synchronized with OneDrive. Each action will generate one or more auto-named variables, but it is advisable to customize these variable names for easier flow maintenance and element identification. -
Customizing Variable Names
For this tutorial, we will customize only a few variable names by double-clicking on them. This allows for multiple executions of the flow. Make sure to clear the content of the Excel table before injecting updated data into it. -
Reading Table Content
Add an action to read the table content by retrieving data from the file and storing it in a variable named 'Excel data'. This will allow for initiating a loop to delete each row. Initialize the loop variable at two to start from the second row and set the loop end at the count of rows in the 'Excel data' variable. -
Deleting Rows
For example, if your file contains 50 rows, you will need to create 49 deletion loops, preserving the header row. Add the Excel row deletion action, which will delete row two at each loop, repeating this 49 times. -
Extracting Web Data
To retrieve web data, use the 'Extract data from web page' action. Once in the properties window, switch to the previously opened browser page. A Power Automate web assistant should appear when hovering over page elements, with a red box delimiting a detected area. -
Selecting Elements to Extract
Right-click and select 'Extract element value' for the desired items. Repeat this action three times for the items to be retrieved, corresponding to the columns of the Excel file (trainer name and details). Power Automate will automatically detect recurring elements on the entire page, saving you from individually clicking on each block. -
Defining Navigation and Data Storage
Define the navigation arrow at the bottom of the page as the page selector. Next, set the number of pages to process to capture the first five pages. The data will be stored in a variable named 'data from web page'. -
Writing Data to Excel
You can now write this data into your spreadsheet, starting from cell A2 (first column, second row). Add an action to automatically resize the columns based on the data present, and finalize by closing Excel and your browser instance. -
Testing the Flow
Save the flow and then test it. You will see on your screen that actions are being performed, and after a few seconds, you can verify that your Excel file is correctly populated. -
Customizing Page Extraction
To have the option of choosing the number of pages to extract, initialize an input dialogue box at the beginning of the flow. Customize the title and content in the web extraction action, replacing the value for the number of pages to extract with the one entered in the dialogue box. -
Conclusion
By following these steps, you can efficiently extract information from your website and transfer it into an Excel spreadsheet, saving you from numerous manual copy-paste operations. Test the flow again to ensure everything works correctly.
FAQ :
What is Power Automate Desktop used for?
Power Automate Desktop is used to automate repetitive tasks and workflows on your computer, allowing you to save time and reduce manual effort.
How do I create a flow in Power Automate Desktop?
To create a flow, open Power Automate Desktop, start with a blank canvas, name your flow, and then add actions from the action column to build your workflow.
Can I customize variable names in Power Automate?
Yes, it is advisable to customize variable names for easier flow maintenance and element identification. You can do this by double-clicking on the variable names.
How do I extract data from a website using Power Automate?
You can extract data by using the 'Extract Data from Web Page' action, selecting the elements you want to retrieve, and defining the navigation for multiple pages if needed.
What should I do if my Excel file is not updating correctly?
Ensure that you clear the content of the Excel table before injecting updated data and check that your flow is correctly configured to read and write data.
Is it possible to choose the number of pages to extract data from?
Yes, you can initialize an input dialogue box at the beginning of the flow to allow users to specify the number of pages to extract.
Quelques cas d'usages :
Automating Data Entry from Web to Excel
A marketing team can use Power Automate Desktop to extract customer data from a website and automatically populate an Excel spreadsheet, saving time on manual data entry.
Monthly Reporting Automation
An analyst can set up a flow to extract sales data from a web portal and update an Excel report monthly, ensuring that the report is always up-to-date without manual intervention.
Data Cleanup and Management
A data manager can automate the process of cleaning up an Excel file by deleting unnecessary rows and updating it with fresh data from a website, improving data accuracy and efficiency.
Web Scraping for Market Research
A researcher can use Power Automate to scrape data from multiple web pages for market analysis, storing the results in Excel for further analysis and reporting.
Glossaire :
Power Automate Desktop
A Microsoft application that allows users to automate repetitive tasks and workflows on their desktop by creating flows.
Flow
A series of automated actions that are executed in a specific order to accomplish a task in Power Automate.
Variable
A storage location in programming that holds data that can be changed during the execution of a flow.
Excel Actions
Specific commands in Power Automate that allow users to interact with Excel files, such as opening, reading, and writing data.
Loop
A programming construct that repeats a block of code a certain number of times or until a condition is met.
Extract Data from Web Page
An action in Power Automate that allows users to retrieve specific information from a web page.
Input Dialogue Box
A user interface element that prompts the user to enter information, which can then be used in the flow.
Synchronized OneDrive
A cloud storage service from Microsoft that allows users to store files and access them from multiple devices.
Cette formation pourrait intéresser votre entreprise ?
Mandarine Academy vous offre la possibilité d'obtenir des catalogues complets et actualisés, réalisés par nos formateurs experts dans différents domaines pour votre entreprise