We can extract data from text file to excel using power automate desktop.To do this we can follow these steps given below.

Key actions to be used in flow of Power automate text to excel:

 

1.Get Files in folder

To begin with we have to select folder path where files exist from which we have to extract data.

Get files in folder action in power automate
1.Get files in folder action in Power automate

2.Launch Excel

Now we have to insert launch excel action in Power automate.To learn more about it you can read here excel in power automate.

3.Set variable

Now we have to insert  set variable action in power automate.we have set the value of NewVar to 2.

Set variable in power automate
2.Set variable in power automate text to excel

4.For loop

Now we will insert for each action in power automate.In value to iterate we have selected %files% which is output of get file folder.

for each action in power automate
3.For each action in power automate

 

5.Read Text from File

Now we will add action read text from file in Power automate text to excel flow.It will read text from files.In file path we will select %Current item% and store content as single text value.

Read text form file in power automate text to excel
4.Read text form file in Power automate

6.Write to excel worksheet

Now we will add write to excel worksheet action in power automate flow.How to use it you can learn here in article excel in power automate.

7.Crop text

Now e have to select Crop Text action to crop specified text which we want to insert in excel.To learn how to use crop text you can click here 19 Dynamic action in Power automate.

8.Increase Variable

Now we will step up or increase variable by one to write in excel worksheets next row.

Increase variable in Power automate
8.Increase variable in Power automate text to excel

Now simply end flow.By this way we can easily  convert text file to excel in power automate or extract data from text file to excel in power automate.

 

By sc