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 / Automatically '@' adde...
Power Automate
Unanswered

Automatically '@' added in excel formula

(1) ShareShare
ReportReport
Posted on by 2,108 Super User 2024 Season 1

Hi,

 

I am using 'Write to Excel worksheet' action to write a formula. But automatically '@' added in excel formula.

 

- Actual Formula: =TEXTJOIN("",TRUE,IFERROR((MID(E1,ROW(INDIRECT("1:"&LEN(E1))),1)*1),""))

 

Flow:

Kaif_Siddique_0-1674242714240.png

 

After writing formula using PAD:

Kaif_Siddique_1-1674242869330.png

Updated Formula: =TEXTJOIN("",TRUE,IFERROR((MID(E1,@ROW(INDIRECT("1:"&LEN(E1))),1)*1),""))

 

Kindly help how to resolve this.

 

Regards

Kaif

I have the same question (0)
  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Hi,

    What happens when you place a "="  within you formula where the "@"  appears. So try '=TEXTJOIN("",TRUE,IFERROR((MID(E1,=ROW(INDIRECT("1:"&LEN(E1))),1)*1),"")).

     

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @OkanAT ,

     

    Getting error "Failed to write into Excel.".

    Kaif_Siddique_0-1674328135301.png

    Regards

    Kaif

  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Whereas that does not solve your issue directly, I usually go with the below approach when it comes to formulas.

     

    1. Generally, I do not enter formulas with PAD but prepare an Excel template with an empty table and formulas in the table already.

    2. I obtain the data from the source

    3. I open an excel template, paste the data to the table, and let excel automatically expand the table and formulas - this way, I do not need to worry about manually adding the formulas with PAD.

    4. I save the excel file as a new file.

     

     

    I hope this help; if not - sorry for cluttering.

     

    //edit

    I'll add that this approach makes the solution more versatile/dynamic/easier to adapt in the case the formulas need to change:

     

    A. Formula needs to change:

    1. Formulas hardcoded in PAD approach --> when the logic change, you need to update Flow code

    2. Excel template approach --> just update the template

     

    B. More columns are added to the source data, shifting data used by formulas

    1. Formulas hardcoded in PAD approach --> when the logic change, you need to update Flow code

    2. Excel template approach --> just update the template

     

    My approach is to add all formulas in the beginning of the file, this way I can paste any amount of data/columns in next columns, without overwriting those existing ones.

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    @momlo I liked your approach.

     

    For now, i will keep the post open for different approach.

     

    Regards

    Kaif

  • ThomasFonn Profile Picture
    273 on at

    Hi @Kaif_Siddique 

    My approach to this has been like this:

    1. Activate the cell you want the formula in
    2. Use the "Send Keys"-action with the formula, it can be plain text as in your screenshot
      or you could save your formulas in a variable and re-use those two actions if this is a common occurrence
      just remember to add a {Return} at the end, else it will fail.

    ThomasFonn_0-1674461328314.png

     

     

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Thank you @ThomasFonn . its working.

  • venkatesh340789 Profile Picture
    47 on at

    Its not work for me. 

     

    venkatesh340789_0-1702382879347.png

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 223

#2
David_MA Profile Picture

David_MA 210 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 175

Last 30 days Overall leaderboard