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 / How to write a "=IF" f...
Power Automate
Answered

How to write a "=IF" formulate in the Value to Write of an Excel Flow

(1) ShareShare
ReportReport
Posted on by 16
I am using Power Automate Desktop and wanting to add a formula in to 1 of the cells of a worksheet.   I currently have it opening the excel worksheet, but when i do a "Write to Excel Worksheet" action, i get an error "'IF' is an unknown or unsupported function".  I know I can do formulas, so not sure what i am doing wrong.  The formula is 

=IF(ISBLANK(F2),"N/A", IF(H2<F2, "Yes","No"))
 
Thanks
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,478 Super User 2026 Season 1 on at
    You have Power Fx enabled and that's why you cant just write the excel formula to the "Value to write" since it thinks you are writing a Power Fx function (that starts also always with equal sign).

    Easiest way would be to just switch to not using Power Fx flow (create new flow where Power Fx is not enabled)
    Or if you need to use Power Fx use Power Fx Text formula around the Excel formula:
    =Text("Here the function")

    So like this:
    =Text("=IF(ISBLANK(F2),'N/A', IF(H2<F2, 'Yes','No'))")


    EDIT:  
    This might work better:
    If you need to have the double quotes then you need to put then twice everytime so that Text function doesn't think you end the text:

    =Text("=IF(ISBLANK(F2),""N/A"", IF(H2<F2, ""Yes"",""No""))")

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard