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 / Forms to Excel to Add ...
Power Automate
Answered

Forms to Excel to Add or Update row based on duplicate value

(0) ShareShare
ReportReport
Posted on by 6

Hi, I am trying to create a flow to update a registry where if a serial number entered on the Form already exist in Excel it will update the row and if serial number doesn't exist in Excel it will add a new row. My problem at the moment is I can't add Control without Flow automatically adding "Apply to each" so when I run the flow, it will keep adding a new row as many time as the total number of serial number that already exist in Excel.

Categories:
  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @AndreJo,

    Do you want to add a new row to Excel table if serial number doesn't exist in Excel, and update a row if serial number exists?


    I did some tests according to your requirements.
    Please try:

     

    vmingkzmsft_0-1686806167076.png

     

    vmingkzmsft_1-1686806208442.png

    vmingkzmsft_2-1686806283521.png

     

    vmingkzmsft_3-1686806352994.png

     

     

    Best Regards,

    Kyrie

     

     

  • AndreJo Profile Picture
    6 on at

    Hi @v-mingkz-msft,

     

    Thanks for the quick response.

     

    I am getting this error below. Not sure if there is a step that I miss?

     

    AndreJo_0-1686864957180.png

     

    What is the output selection for "Apply to each"?

     

    Regards,

    Andre

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @AndreJo,

    Please select the List of responses to the input of Apply to each.

    vmingkzmsft_0-1686884770823.png

    Best Regards,

    Kyrie

     

  • AndreJo Profile Picture
    6 on at

    Thanks @v-mingkz-msft!

     

    Flow is working perfectly now.

     

    Regards,

    Andre

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard