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 / If Lookup is match ret...
Power Apps
Answered

If Lookup is match return specific field else Custom Text

(0) ShareShare
ReportReport
Posted on by 71

Hi,

I am struggling with the lookup function. 

I have two Lists built in the SharePoint. 

List 1

  • Project ID

List 2

  • Project ID
  • Category

 

This is the formula I created. My goal is to lookup List2 based on the Project ID if is a match then return Category else "Complete"

 

Lookup(List2, Project ID = ProjectID_Input.Text, Category)

 

 

Thank you

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,750 Most Valuable Professional on at

    Hi @Stuznet 

    Try

    With(
     {
     vPID:
     Lookup(
     List2, 
     Project ID = ProjectID_Input.Text, 
     Category
     )
     },
     If(
     IsBlank(vPID),
     "Complete",
     vPID
     )
    )
     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Stuznet Profile Picture
    71 on at

    Brilliant thank you so much! 

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard