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 / Inserting Excel formul...
Power Automate
Unanswered

Inserting Excel formula via Flow and Referencing Current Cell

(0) ShareShare
ReportReport
Posted on by 25

I need to use an index - match formula in my excel sheet.

 

=INDEX(B:B,MATCH(I2,G:G,0))

 

I can pass the formula in within the add row excel connector, but the Row Number does not increment, it stays as I2 for all rows.

 

I tried switching to RC notation, but it did not appear to persist in excel online.

 

My flow first deletes all rows and then inserts new rows, so the formula needs to be inserted via the flow.

 

Is there a way to reference the current cell within the Match function that will increment properly?  

 

 

Thanks!

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    Hi @GKS ,

     

    You could use add() function to set the Row number.

    Use variables to get all the Row numbers, then configure max() function to get the maximum value.

    After pulsing 1 to the maximum value, add Row Number of the new row.

    64.PNG65.PNG66.PNG

     

    Best Regards,

  • GKS Profile Picture
    25 on at

    Thanks that sounds like it would work.

    I was able to solve this by reconfiguring my formula to not rely on relative cell references, so I replaced I2 in

     

    =INDEX(B:B,MATCH(I2,G:G,0))

     

    with

     

    INDEX(I:I,ROW()),G:G,0)

     

    Making the final formula

     

    =INDEX(B:B,MATCH(INDEX(I:I,ROW()),G:G,0))


    So it references the correct cell using INDEX and ROW instead of a relative cell reference, which does not increment without a lot of customization.

  • v-bacao-msft Profile Picture
    on at

    Hi @GKS ,

     

    Great! In fact, using Excel formula in Flow is difficult to achieve its effect.

     

    Best Regards,

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