I need to compare two Excel files based on their common column
In the first Excel file, the header row is always located at the top of the sheet (first row).
In the second Excel file, the header row can appear anywhere in the sheet — it is not fixed. There might be extra rows above it, such as titles, notes, or blank lines.
Before comparing the data from both files, I must detect which row in the second Excel file contains the actual headers
Hello.
If all the cells match, you can do a quick comparison. with a foreach. If some are different/missing, it will take longer.
Any other feature that may help, like styling?
For a task like this, it’s better to create a C# extension to handle the comparison — it’ll be easier and more efficient.
Hi @Sathwik Karamsetty
Using Advanced Excel, there’s a server cell that you can Find by value — you can use that feature and then apply the condition check accordingly. I shared the attachment as well
Thanks!
Hi @Sathwik Karamsetty ,
Let me know if you need any help on this!