How to compare two excel files with improved mechanism?
Hi,
I have two excel files (.xlsx) with same number of columns with large amount of rows data (around 45000 rows in each files). I have the logic as mentioned below which takes more time to compare and produce the result.
Existing Logic:
1. Get the columns count in both the files. If the same number of columns are present, then compares the data in each files by column wise
Kindly suggest me a good solution to compare two excel files which takes less amount of time.
Thanks in advance.
Thanks,
Karthik
Hi Karthik,
I think you have to use another approach for Scenario #2 , because actually these files are different.
E.g. open File 1, get all values under the column "Name" into the array1. Then open File 2, get all values under the column "Name" into the array2. Then compare array1 with array2.
How to work with Excel files using TestComplete methods you can find here. Also it's may be more convenient to use a native libraries for your preferred language to work with Excel directly.