Skip to main content

Notifications

Community site session details

Community site session details

Session Id : LvEnh3isRYdK6D9BGLOgYE
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 11 Dec 2023 10:41:18 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!!

  • sarah27 Profile Picture
    8 on 11 Dec 2023 at 12:49:48
    Re: How to check if excel cell is empty and accordingly search user and send an email.

    @ManishSolanki It worked!! MILLION THANKS!!! 

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 11 Dec 2023 at 12:35:57
    Re: How to check if excel cell is empty and accordingly search user and send an email.

    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 11 Dec 2023 at 12:14:19
    Re: How to check if excel cell is empty and accordingly search user and send an email.

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


  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on 11 Dec 2023 at 11:12:16
    Re: How to check if excel cell is empty and accordingly search user and send an email.

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 14 Super User 2025 Season 1

#1
stampcoin Profile Picture

stampcoin 14

#3
Churchy Profile Picture

Churchy 12

Overall leaderboard
Loading started