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 / How to update an excel...
Power Automate
Answered

How to update an excel row if a condition is met and add an excel row if a condition is not met

(3) ShareShare
ReportReport
Posted on by 13
Hello all,
 
I am trying to build a flow that updates an Excel row when the "quote number" field in an Excel spreadsheet on SharePoint is blank, and adds a row when it is not blank.
 
If I set the "Condition" as shown below, the row will be updated or added regardless of whether the quote number field is blank or not.
 
In the case of condition A: empty(triggerOutputs()?['Quote Request Number']
The row will be updated whether the quote number field is blank or not.
 
In the case of condition B: empty(outputs('Substring quote request number')?['body'])
The row will be added whether the quote number field is blank or not.
 
Could you please tell me if there is a solution?
Thank you in advance.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

condition A: empty(triggerOutputs()?['Quote Request Number']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
The row will be updated whether the quote number field is blank or not.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
condition B: empty(outputs('Substring quote request number')?['body'])
 
 
 
The row will be added whether the quote number field is blank or not.
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi,
     
    I am not sure I know what the question is or the problem spot to help.
  • Verified answer
    Patricia11 Profile Picture
    13 on at
    Hi,
    Thank you for your reply. I apologize if my explanation was difficult to understand.
     
    The problem was that even though I set conditions, the rows in Excel were updated or new rows were added regardless of the conditions.
     
    I solved the above issue myself.
     
    I added "Get Rows" above "Conditions" and re-set the "Conditions", and the following flow was successful.
    -If the quote number is blank, update the row in Excel.
    -If the quote number is not blank, add a new row to Excel.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard