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 / Xlook up using two dif...
Power Automate
Unanswered

Xlook up using two different excel using power automate desktop....

(0) ShareShare
ReportReport
Posted on by 38

i have two excel files where i need to perform xlook up from reference file to main file using power automate desktop

Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.
  • Liquid error: Exception has been thrown by the target of an invocation. ThomasFonn Profile Picture
    273 on at

    While its doable in Power Automate Desktop, the approach is clunky, atleast the one I came up with.
    Using SQL to do these lookups is preferable.

     

    Anyway, here's how to do it:

    As there is no formula builder or ready-made formula actions in PAD (atleast for now) you have to build one from scratch.

     

    You could create a subflow called XLOOKUP, then start building the formula in pieces.

    The pieces would be as follows:

    • The function name
    • The first argument (the "what to lookup"-part)
    • The second argument (the "where to match the data"-part)
    • The third argument (the "what to retrieve"-part)
    • And then optional arguments if you want.

    ThomasFonn_2-1685518387276.png

     

    You will also need to wrap these arguments in parenthesis, and some of the arguments may need some extra text to work at all.

    As you can see in the image above, in the second and third argument, you can add the second excel-file if it's a lookup into another sheet/workbook

     

    the final variable you send to a "send keys"-action may look something like this:

    ThomasFonn_3-1685518412653.png

     

    you set most/all of the detail-variables before calling the XLOOKUP-subflow and then call the XLOOKUP-subflow to build the correct formula

     

    Finally use the complete formula in a "send keys"-action while in the correct cell and finish with a {Return} to make sure its not getting overwritten by the next action like so

    %CurrentFormula%{Return}.

     

    Hope this can guide you to what you want to achieve

    Best Regards,

    - Thomas Fonn

     

    Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard