Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Excel Comparsion between 2 or more files Flow

Hi All, 


I 'm newb with flow but seems amazing, I have a task to compare 2 excel sheets A & B and create a new excel sheet with out put. 


-Excel sheet A, will get downloaded everyday. (I would like to delete few Rows before comparing to excel B) 

-after deleting the row in excel sheet I would like it to start comparison. 

-I would like to have like for example (Excel A) Row B if it matches (Excel B) Row B then copy from (Excel B) ROW B and C to new excel sheet. 


I hope it's clear what I would like to achieve, any suggestion would be appericated. 

please ask me if something is not clear. 


Many Thanks 

Dual Super User II
Dual Super User II

Hi @Mahipundir 


You can make use of arrays for this particular scenario. The process flow can be something like, 


1. Trigger the flow, 

2. Initialize an array variable

3. Get rows from sheet A

4. Apply to each on rows from sheet A 

5. in the apply to each, append to array variable and select the current item to append the entire row

6. in the apply to each, delete the row and provide the identifier to delete that particular row

7. Out of the apply to each loop, get rows from sheet B

6. Apply to each row on sheet B

7. in the second apply to each, condtion action to check if the array contains the current item

8. If yes, add a row to the table in sheet C and if no, do nothing. 


Hope this Helps!


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (73,943)