web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to check if excel ...
Power Automate
Unanswered

How to check if excel cell is empty and accordingly search user and send an email.

(0) ShareShare
ReportReport
Posted on by 8

Hi all,

I would appreciate any help with creating this flow. 

I want to list an excel file and if the column "TotalHours" is empty then an email should be sent to the "Name" to remind to fill timesheet. I built it like that but I always get "False" expression result in condition.

sarah27_0-1702291064441.png

sarah27_1-1702291095844.pngsarah27_2-1702291111483.png

 



Any help please??

many thanks in advance!!

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @sarah27 

     

    Pls leave the right hand side operand empty (no value) to compare with blank value as shown below in an example:

    ManishSolanki_2-1702293110118.png

     

     

    The optimized way for large data set is to filter the blank rows using the filter query parameter:

    ManishSolanki_1-1702292913060.png

    Here, From is the column name in the excel sheet but in your case the filter query will be:

    TotalHours eq ''

    After adding filter query, you need to have condition in the loop to check for empty values in TotalHours column.

     

    EDIT:

    After adding filter query, you don't need to have condition in the loop to check for empty values in TotalHours column.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • sarah27 Profile Picture
    8 on at

    Hi @ManishSolanki 

    Thank you so much for your help. It worked a bit (at least I'm not getting an error). But I receive an email for every row (though I have a condition to only send an email if cell is empty). Do you have an idea why is this happening? 

    Another question: Could you please explain more this part how to do it? "After adding filter query, you need to have condition in the loop to check for empty values in TotalHours column."

    many thanks in advance!!


  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @sarah27 

     

    Apologies, it is a typo. I was mentioning that after applying filter query you don't need condition action inside loop to check for non-empty values. 

     

    Here is the full sample flow:

     

    Excel input:

     

    ManishSolanki_0-1702297401124.png

     

    Power Automate flow:

     

    ManishSolanki_1-1702297687208.png

    Filter query:

    TotalHours eq ''

     

    Next, add "Apply to each" action pass the output value object to it as input. Inside "Apply to each" block, add "Search user" action & pass the name from the dynamic content:

    ManishSolanki_2-1702297834611.png

     

    Now, add another "Apply to each" action & pass the value object from the output of Search user action. Inside second apply to each block, add send an email action & pass the email address from the dynamic content.:

    ManishSolanki_3-1702297971259.png

    Pls note that 'apply to each 2' should be added inside the block of first "apply to each" action.

     

    Output of the flow:

     

    ManishSolanki_4-1702298090194.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • sarah27 Profile Picture
    8 on at

    @ManishSolanki It worked!! MILLION THANKS!!! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard