You could also create a Datatable using Build Datatable Activity with the 3 Columns, then use Add Data Row Activity to add the data to the Datatable. Then write the Data to an Excel sheet using a Write Range Activity.
@AbarnaKalaiselvam Before For Each you can take excel scope and write the header values in cell A1,B1,C1… using Write Cell activity. Check the updated workflow below. I hope this logic also avoids writing the data from cell12
@AbarnaKalaiselvam Also, in the above screenshot of Write Cell activity you have given as "A1"+counter.ToString which is incorrect, give as "A"+counter.ToString. Please follow the attached workflow above
*First initialize a variable of type int with 1.
*After that, use Matches activity and apply the Regex expression to it.
*Use an for each activity if it contains multiple matches to iterate.
*Increment the count by +1 and use “Write Cell Activity” to print the data into excel.(In write Cell activity give the excel file path, Sheet name the cell where to write with the count variable.toString, and currentitem(since its in for each loop))