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 / VLOOKUP from 2 Excel a...
Power Automate
Unanswered

VLOOKUP from 2 Excel and write the Status.

(1) ShareShare
ReportReport
Posted on by

Hi, I'm new at Power Automate Desktop,

 

You can refer to Flowchart, I hope you can understand this well. I already created the power automate desktop flow.

 

nraindmia_6-1692516364822.png

 

But I stuck at the VLOOKUP and Condition process:

nraindmia_1-1692515231489.pngnraindmia_2-1692515256201.png

nraindmia_3-1692515741764.png

nraindmia_4-1692515807956.png

 

1)I already do a CONCAT function to combine Company name/Legal Entity and Employee No/Person Number to a new column called as UniqueID for both Excel1 and Excel2.
2) Need help for this part to VLOOKUP UniqueID from Excel 1 and Excel 2
3) and  when the uniqueID form excel 1 and excel 2 from VLOOKUP is match, then write the status as "Matched"
3) If the UniqueID is different, put the status as "Transferred"
4) If in excel 1 have a date in Termination Date, put the status as "Terminated". Usually termination date will be blank unless they got terminated. 
nraindmia_5-1692515976849.png
how to do the VLOOKUP from Excel 1 to Excel 2 to make sure the data is "Matched", "Transferred" or "Terminated"? Is my flow is correct? 

 

 

 

I have the same question (0)
  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at

    Hi @nraindmia ,

     

    I really like what you have built here!  Great job!  I'm sharing an Excel formula with you and hope it works for you!  When I looked at your questions and then started building a formula that would work, this is what I came up with based on what I could assume for the post.

     

     

    =IF(Book1Excel1.xlsx!Table1[@TerminatedDate]<>"","Terminated",XLOOKUP(A2,Book1Excel1.xlsx!Table1[UniqueID],Book1Excel1.xlsx!Table1[HelperCol1],"Transferred"))

     

     

    The key here, and a common best practice, is to implement a "helper column".  This can be a column off to the far right and typically it is hidden because it will only be used for formulas and not visual use.  There are most likely other ways to do this to but I'm suggesting the is the easy route.

     

    The first part of the formula simply checks if there is a terminated date, true or false, "Terminated".  The XLOOKUP, checks the UniqueID and if they match, "Matched", else (the only option left) "Transferred".

     

    trice602_0-1692552861931.png

     

     

     

  • nraindmia Profile Picture
    on at

    Hi, I really appreciate it! This can be use in excel but currently for now, i need the formula in Power Automate Desktop. Thank you.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    This seems to be a duplicate topic and I have already provided a suggested solution here: https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Concat-2-column-to-1-column-in-first-and-second-excel-then/m-p/2303452#M30036

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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