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 Automate
Answered

if statement

(1) ShareShare
ReportReport
Posted on by 22

Hello to everyone,

 

Column name 1Column name 2Column name 3
T11/07/2024alexxxxxxxxx1@gmail.com
T2N/Aalexxxxxxxxx2@gmail.com
T3N/Aalexxxxxxxxx3@gmail.com

 

I have the above excel file and I am trying to open it on PA desktop and if the column name 2 is N/A to send an email to the users on column name 3 with their tasks (Column name 3).

 

My issue is with the syntax of if statement below:

 

Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $fx'C:\\Users\\axxxxxxxx\\Documents\\Book1.xlsx' Visible: True ReadOnly: False Instance=> ExcelInstance
Excel.ReadFromExcel.ReadAllCells Instance: $fx'=ExcelInstance' ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
LOOP FOREACH CurrentItem IN $fx'=ExcelData'
IF $fx'=CurrentItem["Column name 2"] is equal to "N/A"' THEN
END
END

 

Can anyone help me with the if statement syntax?

  • Verified answer
    CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Alexrent 

     

    It appears you have enabled the Power FX feature during the flow creation.

     

    To resolve this, simply recreate your flow and disable Power FX as indicated in the screenshot provided. Then, recreate your flow using the standard syntax, and it should function properly.

     

    Deenuji_0-1720016938469.png

     

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Alexrent Profile Picture
    22 on at

    Hi @Deenuji ,

     

    I have already enable the Power Fx (Preview)

    Alexrent_0-1720017668725.png

     

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Alexrent 

     

    I mentioned to recreate your flow from scratch and disable power Fx as like above screenshot during your flow creation.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Alexrent Profile Picture
    22 on at

    It is working @Deenuji 

     

    Thank you

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard