Skip to main content
Community site session details

Community site session details

Session Id : zL9lFgoMoGo7Vv41Vu5kJv
Power Automate - General Discussion
Unanswered

How to compare two Excel files with Power Automate with Sharepoint

Like (0) ShareShare
ReportReport
Posted on 16 Mar 2023 13:09:03 by

Hello,

I want to compare the value of an Excel tile (A1) with another file. The one excel file is in sharepoint. How do I implement this?

Do I start with Sharepoint "Get file content"?

 

I am glad to get some help.

  • tushar123 Profile Picture
    17 on 11 Jun 2024 at 13:11:42
    Re: How to compare two Excel files with Power Automate with Sharepoint

    After comparing i need to update one other excel sheet with match and unmatched value for each field. By using this solution,its giving only one value of matched in A1 cell of 3rd excel file. I need each value of coloum of 1st excel file to compare with each value of coloum A of 2nd excel file and give results 3rd excel file with matched and unmatched value for every field of both input excel.

  • David_MA Profile Picture
    11,767 Super User 2025 Season 1 on 16 Mar 2023 at 19:19:06
    Re: How to compare two Excel files with Power Automate with Sharepoint

    Are you asking how to compare the data in cell A1 of two different spreadsheets? If so, to use the Excel actions in Power Automate, your data must be in a table. Cell A1 would be in the header row of your table. If this is what you need, you will first need to format the data in your spreadsheets as a table. Then I assume you are wanting to compare the data from the second row of each of your spreadsheets.

     

    If so, this gets much easier. Once you have the data formatted as a table, add an additional column to your spreadsheets named Row with the function =ROW() so that each row in your spreadsheets has a unique ID, as this is needed to get the row. The following is made-up data from Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel, but your spreadsheet would look like this this:

    David_MA_0-1678994006975.png

    In my data above, I already have a column that contains unique values in the id column. If you have something similar in your data, you can use that instead of creating the "Row" column in the Key Column/Key Value pair. However, the Row method ensures you are always comparing the second row. If you need to compare a specific item no matter how the data is sorted, then you will need to have something unique in each spreadsheet to identify the row.

     

    Next you will use two Get a row actions to get the data for the rows you want to compare. You would configure these like:

    David_MA_1-1678994111464.png

    Finally, add a condition and compare the field in the row from your first spreadsheet to the one in your second spreadsheet:

    David_MA_2-1678994179332.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1