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 / Addin Excel Formala in...
Power Automate
Suggested Answer

Addin Excel Formala in Power Automate result into an Error

(0) ShareShare
ReportReport
Posted on by

I'm trying to use Write to Excel Worksheet -> Value to Write ->

=CONCATENATE("DELETE ",TEXTAFTER(CELL("filename",$A$1),"]")," WHERE ",$A$1," = '",INDIRECT("A" & ROW()), "' AND ",$DB$1,"= '",INDIRECT("B" & ROW()), "' ;")

same for

=CONCATENATE("INSERT INTO ",TEXTAFTER(CELL("filename",$A$1),"]"),"  (" & TEXTJOIN(", ",TRUE,$A$1:OFFSET(INDIRECT(ADDRESS(1, COLUMN())),0,-3)) & ") ",SUBSTITUTE(" VALUES ('" & TEXTJOIN("', '",FALSE,INDIRECT("A" & ROW()):OFFSET(INDIRECT(ADDRESS(ROW(), COLUMN())),0,-3)) & "');","'NULL'","NULL"))

but I received this error:

Unexpected characters. Characters are used in the formula in an unexpected way. Expected operator. We expect an operator such as +, *, or & at this point in the formula.

Please advise!

I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    One way of doing it is to just create that action in regular flow and copy paste it into the Power Fx flow. But you cant edit that action in the power fx flow or it will give errors. 


    Or you could create a text file where you have that function already written and just use "Read text from file" and use that output to write to excel.

    Or you can use scripting like Run .NET Script to create text value that you can then write to excel.




    Here is the action to copy and paste to your flow:
    Scripting.RunDotNetScript Language: System.DotNetActionLanguageType.CSharp Script: $fx'FormulaString = @"=CONCATENATE(""DELETE "",TEXTAFTER(CELL(""filename"",$A$1),""]""),"" WHERE "",""$A$1"","" = \'"",INDIRECT(""A"" & ROW()), ""\' AND "",""$DB$1"",""= \'"",INDIRECT(""B"" & ROW()), ""\' ;"")";
    ' @'name:FormulaString': $fx'' @'type:FormulaString': $fx'String' @'direction:FormulaString': $fx'Out' @FormulaString=> FormulaOut
    


    I would still recommend using regular Power Automate Desktop flows rather than Power Fx enabled flows since Power Fx has much more bugs in it still. 

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard