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 / Lookup data table or E...
Power Automate
Unanswered

Lookup data table or Excel in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on 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?

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    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.

     

     

     

     

     

     

  • Mels_robots Profile Picture
    16 on at
    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]%

     

  • Verified answer
    Mels_robots Profile Picture
    16 on at

     @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.

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard