Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VTIOZ+qQHcu3cbOObmn0/e
Power Automate - Power Automate Desktop
Answered

Lookup data table or Excel in Power Automate Desktop

Like (0) ShareShare
ReportReport
Posted on 1 Nov 2022 15:16:10 by 16

Hi,

 

Can someone help me find out how to look up multiple values in a excel sheet.

It should find a specific value in column 3 and then return the value in column 2 from the same row in Excel.

When the value (in this case name) only appears once it seems pretty clear. I used the Find and replace cells in worksheet. And then read from excel using the found row and found column.

However when the name appears multiple times in the worksheet I got a problem.

Instead of the found rows and columns I get a datatable %Cells%.

Can someone help me on how I can use the data to find the matching rows in a loop for each name?

 

  • Verified answer
    Mels_robots Profile Picture
    16 on 03 Nov 2022 at 13:21:37
    Re: Lookup data table or Excel in Power Automate Desktop

     @VJR sorry I’ve found my bug.

    I used %Cells% instead of %Current_Cell% from the loop in the Read From Excel StartRow. 🥴🤦🏻‍

    Finally got I right 🙂 

     

    thanks again.

  • Mels_robots Profile Picture
    16 on 03 Nov 2022 at 12:11:55
    Re: Lookup data table or Excel in Power Automate Desktop
    5D750181-447A-4899-BE77-7AC5B627889F.jpeg

      

    Hi @VJR  ,

    thanks for your reply.

    I’ve tried this but can’t get it to use the data table %Cells% is my syntax wrong? I’ve tried both with and without the ‘ in %Cells[RowIndex]%

     

  • VJR Profile Picture
    7,635 on 02 Nov 2022 at 02:59:13
    Re: Lookup data table or Excel in Power Automate Desktop

    Hi @Mels_robots

      

    If you keep the All Matches enabled, then it will give you the Cells datatable.

    If disabled, then it only gives the Found Row and Column.

     

    VJR_5-1667357623516.png

     

     

    If you are going to have multiple matches then use All Matches.

    Whether you have a single match or multiple the below loop will read them.

     

    - Add a For each loop

    - Use the Cells Datatable for the Loop

     

    You can make use of the %Cells.RowsCount% property if you want to know whether there is a single match or multiple or no match at all.

     

     

     

     

     

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 55 Super User 2025 Season 1

#2
Nived_Nambiar Profile Picture

Nived_Nambiar 18 Super User 2025 Season 1

#3
CU12050101-0 Profile Picture

CU12050101-0 12

Overall leaderboard
Loading started
Loading complete