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 / If Excel value is blan...
Power Automate
Unanswered

If Excel value is blank, do nothing

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all...

 

I have a Flow with a Condition (to append or replace data in a SharePoint list) based on the value in an "ETL Action" column of an Excel spreadsheet. It either creates or updates rows in that SharePoint list depending on what value has been populated in that ETL Action column. If the value is "New," it creates a new row. If it's anything other than new, it updates existing rows. I want to add a condition where if the value in the ETL Action cell of an Excel row is blank, then do nothing, or terminate the Flow. Considering how I have it set up below, does anyone know how to accomplish this?

 Capture.JPG

 

Categories:
I have the same question (0)
  • krootz Profile Picture
    458 on at

    @Anonymous if you're not doing anything when the value is blank, why include them in the first place?

    You can use the filter query on your list rows action to not include blank.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @krootz  Thanks for your response. It's an end user request. Instead of deleting rows from the source file that aren't ultimately included in this business process, they want to just clear the ETL value for those rows.

     

    Any hints on how one would use dynamic content or write that expression in the filter query?

  • Paulie78 Profile Picture
    8,424 Moderator on at

    Unless I misunderstand the question, I agree with @krootz - but it's hard to say as your question comes across slightly differently in each of your comments:

    I want to add a condition where if the value in the ETL Action cell of an Excel row is blank, then do nothing, or terminate the Flow.

    You do not need a condition if the blanks have been removed with a filter. Your existing condition will continue to work as before, you simply won't hit any blanks and therefore you would have no need to create a condition.

  • krootz Profile Picture
    458 on at

    @Anonymous Example below works against an excel file I have and excludes where the DRIVER is blank using DRIVER ne ''

    excel blank.png

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous 

     

    Couple of ways you could do this.

     

    1. Add a filter query . See below here Name is my column name and checking not equal to blank.

     

     

    image.png

     

     

    This  will filter only the records where Name is not null.

     

    2. If you want to iterate the full record and make a decision then add another condition under your current IF condition where the else part is. Here you need to check Name is equal to blank. Do not set any values

     

    image.png

     

    Here under the else you can have your Get Items actions and other logic.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @krootz  Thank you. I'm getting a syntax error though. To confirm; you used this style end quote (") as opposed to 2 of these (') ?

     

      "message""Syntax error at position 10 in 'ETL Action (New or Update) ne \"'.\r\n    
  • krootz Profile Picture
    458 on at

    @Anonymous those '' are two single quotes (') 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @krootz  OK, thank you. I added the filter and it works in that if a cell in the ETL Action column is blank, that row is ignored, but the Flow is also ignoring rows where there is a non-blank value in a cell within the ETL Action column. 

     

    Capture.JPG

     

  • jaanihsm Profile Picture
    300 on at

    Hi! Did you get this resolved? I am also having the same result. Blank and non-blank values are ignored. 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 889

#2
Valantis Profile Picture

Valantis 830

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard