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 / Excel Formula Syntax f...
Power Automate
Suggested Answer

Excel Formula Syntax for Variable

(1) ShareShare
ReportReport
Posted on by 206
HI,
I need to use this formula as a PAD variable, or other best practice, to enter a value into an excel cell to populate some data.
 
=INDEX(A:A, ROW()-1)
 
While this works perfectly in Excel, and pressing CTRL-Enter in excel, populates the formulas in the entire column, and all is good,
unfortunately, PAD appears not to like it.  "Parameter 'Value': Unexpected characters. The formula contains 'Colon' where 'ParenClose' is expected."
 
Does anyone have any suggestions?
 
 
I have the same question (1)
  • Suggested answer
    Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at
    Hi  ,
     
    I recommend saving the formula in a text file rather than using a variable. You can then read the content from the text file and place it in the clipboard using PAD clipboard actions. After that, use the paste cell function to insert the clipboard value into the Excel worksheet. This approach should work effectively.
     
    Thanks,
    Deenu
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    That's because you have Power Fx enabled in your flow. Either create a new flow without Power Fx enabled:
    And then you can set variable like you have tried:



    But if you want to use Power Fx then you need to wrap the Excel function inside power fx Text function so that it interprets the =INDEX not as a Power Fx function but as text.
    Equal sign is like telling PAD Power fx enabled flow that next is going to be a power fx function or a variable.

    ​​​​​​​Like so:

    =Text("=INDEX(A:A, ROW()-1)")

  • Suggested answer
    AK88 Profile Picture
    453 on at
    Hi,
     
    1. Create another flow without enabling Power Fx.
    2. You can directly use a excel formulas in to write to excel without chosing other actions

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard