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 formula o...
Power Automate
Suggested Answer

How to write formula of Index match or VLOOKUP using two excel files

(1) ShareShare
ReportReport
Posted on by 203
Hi Team,
 
How to write formula of Index match or VLOOKUP using two excel files as im getting error in below flow 
 
Below are the snap shot for your reference 
 
 
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    Can you share the error that you are getting? Also which type of flow you are using? Regular or Power Fx enabled? 
    If its Power Fx it says it in the top left corner of the editor.


    With Power Fx when you are writing Excel funtion you need to wrap the text around Text() -expression. Like so:
    =Text("=INDEX([Book1.xlsx]Sheet1!$B:$B,MATCH(A2,[Book2.xlsx]Sheet1!$A:$A,0))")



    Otherwise the power fx enabled PAD thinks you are passing an Power FX expression or Power Automate Desktop variable since you refer to them with the equal sign.


    If its regular flow then I need to see the error message since I don't get an error when I write that function to my PAD flow. Maybe also explain what the excel function does. 
  • Ahmedmuz Profile Picture
    203 on at
    Hi,, I am using the normal Regular one not the  Power Fx enabled one... below is the error 
     
  • Suggested answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
     
    Please find the solution in below blog. I have explained all the different ways you can apply Vlookup using Power Automate desktop.
     
     
     
    (Note:- if you got your solution you can mark as solution and gives kudos)
     
    Thanks & Regards
    Vishnu Reddy
  • Ahmedmuz Profile Picture
    203 on at
     
    Is that Vlookup for two different excel file or its a within one single excel file,, Im looking to use with two excel file and apply if you see my flow.. please help  
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    Does the formula work if you put it manually in the Excel? Could you show how your two excels look and explain what you are trying to do?  

    I am not an expert in excel functions but something that came to mind: Maybe try changing the "newone.xlsx" to "Look.xlsx"
    Or if I have misunderstood how the Match function should work and it should be using newone.xlsx then should the Sheet1 be Data worksheet since you have activated that? Or does the newone.xlsx also have Sheet1 worksheet that you are trying to look into?

    I tried this dummy flow and didn't get an error:


    Excels looks like this:




    If theres still dificulty then show the full error:



    Then it opens Error details window. Open the Error details and paste the text here

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
     
    If possible can you send the sample excels and explain what you want to achieve.
     
    I will build the flow and send you.
     
    Regards,
    Vishnu Reddy

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