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 / Check if Imported Exce...
Power Automate
Answered

Check if Imported Excel Sheet has a Value in Column

(1) ShareShare
ReportReport
Posted on by 70
Hello! I have imported an excel sheet with the "List Rows" action, and I am trying to create a condition that evaluates to true if a cell contains anything. Alternatively, I could have a condition that evaluates to true when the cell contains nothing. I can't seem to figure out how to do either, please help!
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    When Power Automate reads Excel with List rows present in a table, cell values can arrive as:
    • null
    • "" (empty string)
    • "   " (spaces)
    • actual values (text/number/date)
    The Excel connector does NOT normalize these, so you must clean them before checking.
    To check whether an Excel cell has a value or is blank after using List rows present in a table, use these expressions inside your Condition:

    Check if the cell is blank
         equals(trim(string(coalesce(items('Apply_to_each')?['ColumnName'], ''))), '')
    Check if the cell has any value
         not(equals(trim(string(coalesce(items('Apply_to_each')?['ColumnName'], ''))), ''))
     
    Replace ColumnName with your actual Excel column name.
     
    These handle:
    • nulls
    • empty strings
    • cells with spaces
    • numbers/dates (because of the string() conversion)
    You can drop them directly into your Condition block, no additional steps needed.
     
    Why the expressions work:
    coalesce() → converts null to ''
    string() → normalizes numbers/dates to text so checks don’t break
    trim() → removes whitespace
    equals(..., '') → detects blank values
    not(equals(...)) → detects non‑blank values
     
    This is the most reliable pattern for evaluating whether a cell is empty or not when looping through rows.
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
  • Verified answer
    trice602 Profile Picture
    16,298 Super User 2026 Season 1 on at
    Hi there!
     
    This is a good one to use and works well.  Here in my condition I am checking to see if the length(field1) is less than or equal to 0, and shown below, the condition returns true.
     
     
    Sometimes it is helpful to see the Excel sheet also to connect the dots...
     
     
     
    Here's the length expression as well.  Give this one a try, I think it will work for you and often I use length() to help make condition actions work well for me on the first attempt.
     
     
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     
     

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 May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard