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,932 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

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
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard