Huge Excel files with formula filter datatable


I am new in uipath world and I want to create a robot which should do the following simple tasks:

I have 2 .xlsx files: source.xlsx and destination.xlsx

destination.xlsx contains 8 columns
source.xlsx contains 4 columns

I need to copy data from source at the end of the destination file in columns BCDE.
For column A I have a formula and for column FG other 2 formulas.

Here is how I did it:

  1. I used an ReadRange to read the entire source.xlsx(dtSource).
    1.1 I got the number of rows from source;(intSourceCounter)

  2. I used an Application Excel Scope
    2.1 I used an ReadRange to read the entire destination.xlsx(dtDestination);

    2.2 I got the number of rows from destination(intDestinationCounter);
    2.3 I calculated the range where to write B(intDestination):E(intDestination + intDestinationCounter)
    2.4 BuildDatatable with 4 columns (dtFourCloumnsDt)
    2.5 Filter Datatable (input: dtSource; output: dtFourCloumnsDt)
    2.4 Write range dtFourCloumnsDt into dtDestination

    2.5 BuildDatable with one column to for A(dtColumnA);

    2.6 foreach row in dtSource
    2.6.1 strColumnAFormula = “myFormula”;
    2.6.2 AddDataRow (strColumnAFormula)

    2.7 Write range dtColumnA into dtDestination

    2.8 BuildDatable with one column to for F and G(dtColumnsFG);

    2.9 foreach row in dtSource
    2.9.1 strColumnFFormula = “myFormulaF”;
    2.9.2 strColumnGFormula = “myFormulaG”;
    2.9.3 AddDataRow (strColumnFFormulaF,strColumnGFormulaG)

    2.10 Write range dtColumnsFG into dtDestination

My destination.xlsx has only 10 rows.
My source.xlsx has 1000 rows.

time required for execution is 2 hours which is in my opinion huge.
How can I do it to work much faster. Where am I wrong?
This were test files, the productive ones will have more than 200.000 rows

Hello @Emilian_Marginean!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly