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 / 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?

 

DB8B84FB-C4A5-4979-9CFC-CEA3BDC1EED7.jpeg

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Your actions could look something like this:

     

    For each %Current_Cell% in %Cells%

        Set variable %LoopUp_Value% to %Current_Cell[ColumnIndex-1][RowIndex]%

    End

  • Mels_robots Profile Picture
    16 on at

    Hi @Henrik_M ,

    Thanks for your reply.

    Maybe I got the syntax wrong.

    But I get “Parameter ‘Value’: Variable ‘Column index’ (and same as to RowIndex) doesn’t exist”.

  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

    Can you show your actions?

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    After Read data from Excel:

    Create list1

    Get DataTable column as List2

    Loop 0 to %List.Count - 1% increment of 1

    If %List[LoopIndex]% = [current search text]

        Add to List1

    End(IF)

    'Use List1 to do what you need to do

    Clear List1 before looping through your next search text

     

    Best of luck!

     

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
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard