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 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,341 Super User 2025 Season 2 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

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
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 190 Super User 2025 Season 2

Last 30 days Overall leaderboard