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 / "How can I extract dat...
Power Automate
Unanswered

"How can I extract data from two separate Excel files and perform a lookup operation within a For Each loop using Power Automate Desktop?"

(0) ShareShare
ReportReport
Posted on by 203

Hi Everyone,

 

Please help me with "How can I extract data from two separate Excel files and perform a lookup operation within a For Each loop using Power Automate Desktop Flow?

 

Best Regards 

Ahmedmuz

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Please let me know if I am misunderstanding your question:

     

    You want to basically use a Vlookup, but the two workbooks can't communicate to each other, correct?

     

    If they can, but you don't want them linked, you can simply use the vlookup formula and then copy and paste values to break the link.  If they just can't communicate, then:

     

    Read Excel

    For each CurrentItem in ExcelData 'currentitem would be a row in this case
        If CurrentItem[LookupHeader] = %CurrentVariableToMatch%

            Set %FoundValue% to %CurrentItem[ReturnHeader]%

            Exit(Loop)

        End(IF)

    End(Loop)

     

    Above reads the table, so you are no longer working with Excel.  In PAD, it is iterating through each row of the vlookup table.  Put the Header name in the square brackets to tell it which value to pull.  Get your Value out, exit the loop, then do what you need to with the value before the flow comes back to this loop and overwrites the value.

     

    Good luck!

  • Srini007 Profile Picture
    3,471 Super User 2026 Season 1 on at

    Hi @Ahmedmuz 

     

    Check below link for your reference

     

    https://rahullakshmanan.medium.com/lookup-data-table-or-excel-in-power-automate-desktop-97e13db8acd8

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

  • Ahmedmuz Profile Picture
    203 on at

    Hi,

    I have two different excel file instance open  1.Have customer Number & 2. Have the customer number and Name so how to achieve that (I'm trying to achieve the customer's name using the Customer number common) please help me with the Power automate desktop flow snapshot it will be very use full for me?  

  • Ahmedmuz Profile Picture
    203 on at

    Hi, 

    Hi,

    I have two different excel file instance open  1.Have customer Number & 2. Have the customer number and Name so how to achieve that (I'm trying to achieve the customer's name using the Customer number common) please help me with the Power automate desktop flow snapshot it will be very use full for me?  

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard