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 / Looking to update a co...
Power Automate
Unanswered

Looking to update a column in an excel sheet based on a row of data from another excel sheet

(0) ShareShare
ReportReport
Posted on by 46

Hello,

I am new to PowerAutomate. I am looking to use Powerautomate to create a flow that will match 2 columns(CustomerID) in 2 different Excel workbooks and update a column in Excel Workbook 2 based on the matching values in Excel workbook 1. Can anybody please help?

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    Please refer a high level solution below...

     

    • Create a table for the data within both the excel.
    • Read table from first excel 1 using List Rows Present in Excel
    • Use Filter Array to filter a row to match the columns that you are looking for.
    • Use Update a Row on 2nd Excel. Provide Key from 2nd Excel and value from Filter Array.

    For Value, you can use expression like below where Apply to each is your loop name and Test1 is column in excel 1.

    items('Apply_to_each_7')?['Test1']

     

    PrasadAthalye_1-1622078427901.png

     

  • MadhuVadlamani Profile Picture
    46 on at

    Thank you Prasad.

    Is there no need to list the values from the second table?

    Also the 2 columns I am trying to match between the 2 excel workbooks are in Text format, how do I match them?

    Please look at the screenshot

    1. I listed rows of first excel

    2. Apply to each on first

    3 Used a nested loop and listed rows of second excel 

    4 then apply each on second excel

    5. Applied a condition to check if the Customer ID from both excel are equal( both are text, how to check if they are equal)??

    6 I am trying to update a column in the excel 2 based on the matching IDs.

    It is always failing. Could you tell me why this doesnot work?Screenshot of powerautomate flow.png 

  • PrasadAthalye Profile Picture
    on at

    Reason you dont have to Get rows from 2nd table is because you are trying to update. Within update, you can specify key and value to uniquely identify row and update it.

     

    Can  you upload flow run that has error and explain which Action failed?

     

  • MadhuVadlamani Profile Picture
    46 on at

    Hi Prasad,

    Should we not read data from the second table before filtering?

    What should be the values in the filter?

  • MadhuVadlamani Profile Picture
    46 on at

    Hi Prasad,

    So I have 2 excel sheets, A and B and both have data already.

    I want to use powerautomate and take the values of a column called "Health indicator' in Excel A and paste it into a column called "RFX" in Excel B. My matching criteria is Customer ID which is present in Excel A and Excel B.

    Could you give me the detailed steps?

    Also I created a nested loop without filters for this requirement but the flow is taking too long to execute.PFA the scrreenshot.Powerautomate screenshot.png

  • MadhuVadlamani Profile Picture
    46 on at

    Also what should the values of the filter be?

  • PrasadAthalye Profile Picture
    on at

    Hi Madhu,

     

    Refer below

     

    PrasadAthalye_1-1622140484547.png

     

     

  • MadhuVadlamani Profile Picture
    46 on at

    Thank you Prasad.

    Will this flow match the Customer IDs between both the excel sheets?

    Only the Customer Ids match and I have to update a different column in the 2nd excel corresponding to the matched Customer ID.

    Please excuse my ignorance.

  • PrasadAthalye Profile Picture
    on at

    Yes. Key Column from 2nd Excel for you should be Customer ID. Then Value should be Customer ID from first Sheet.

     

    Please try and the let me know if it works.

  • MadhuVadlamani Profile Picture
    46 on at

    Hello Prasad,

    My condition is failing. The customer ID is a text field and not numbers. The equal to function is not working. 

    Could you help me with the right syntax for checking if the 2  customer IDs( which are in text format) are equal ?

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard