web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Compare excel and SP l...
Power Automate
Answered

Compare excel and SP list based on condition

(0) ShareShare
ReportReport
Posted on by 254

Hello guys😊 I have SP list with a lot of columns, the most important columns is "Status" and "Contract #". Column "Status" obtains only 3 options: In progress, Not passed, Passed ( viz photo):

 Status_columns.png

Column "Contract #" is primary key, which obtains unique numbers of contracts (viz photo):

 contract_#_column.png 

Excel file have the same columns as my SP list. But I don't need to download all information from SP list to my excel file. I need only information where Status is Passed. If status is passed, check if this contract # is already exists in excel file( if yes just update row in excel, if no create row with this contract # from SP list to excel file).

Thank you, I am waiting for your answers😊 

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,624 Super User 2026 Season 1 on at

    1. run ODATA query against your SharePoint List to get all contract numbers where the status is passed

    2. iterate over the result

      2a. check if the row exists in Excel (Get a row)

      2b. if yes, update the row. if no, add the row.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Aleksandra1,

    Do you want to sync the excel file with SP list when the Status is Passed?

    Could you please tell me that if the Status is Choice type or Single-line-of-text type?

     

    Not sure what is your trigger, fire this flow in a special time or there is an existing trigger like when an item is created or modified. I assume that the Status column is a Choice type, here is the simple demo:

    vqiaqimsft_1-1663050777078.pngvqiaqimsft_2-1663050818699.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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard