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 Apps / How to use LOOKUP func...
Power Apps
Answered

How to use LOOKUP function on multiple excel files (2)

(0) ShareShare
ReportReport
Posted on by 2

Hi, is it possible to use LOOKUP function on multiple excel files (2)?

 

If not, would an IF statement work? Like LOOKUP this file and if not found lookup in this other file? 

Categories:
  • eka24 Profile Picture
    20,925 on at

    Yes it possible to do Lookup on multiple columns. Can you give example of what you want to achieve.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @JoshL5 

    Sure, something like this in the Items property of a gallery.

     

     

    If( !IsBlank(Lookup(Table1,Title-TextInput1.Text), Lookup(Table1, Title=TextInput1.Text),
     !IsBlank(Lookup(Table2,Title-TextInput1.Text), Lookup(Table2, Title=TextInput1.Text),
     !IsBlank(Lookup(Table3,Title-TextInput1.Text), Lookup(Table3, Title=TextInput1.Text), etc.
    )

     

     

     The formula above will search through tables starting with table 1 until it finds an item that matches the condition.  It will stop once an item is found.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @JoshL5 ,

    Could you please show more details about your scenario?

    Do you want to apply the LookUp function to multiple Excel tables? Do these multiple Excel table have same data structure?

     

    Regarding the needs that you mentioned, I think your thought is in right direction. The If function could achieve your needs. On your side, you could choose different Excel table as the first argument in the LookUp function against different conditions.

     

    The sample formula may looks as below:

    LookUp(
     If( // choose different data source based on differnt condition
     DataSourceOption = "Option1",
     Table1,
     DataSourceOption = "Option2",
     Table2, 
     DataSourceOption = "Option3",
     Table3
     ),
     FilteredColumn = "xxxxx"
    )

     

    Please try above solution, hope it could solve your problem.

     

    Regards,

  • JoshL5 Profile Picture
    2 on at

    this should meet my need thanks!

     

    @v-xida-msft 

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 Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard