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 / Apply an Excel cell va...
Power Automate
Answered

Apply an Excel cell value as a parameter in another Excel worksheet

(0) ShareShare
ReportReport
Posted on by 13

How to use Power Automate to select a value from an Excel worksheet and use it as a parameter value in another worksheet?

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You have two options. You can write to excel for the value you found and place it somewhere in the second workbook to reference it locally, or you can write the formula in the second workbook to look at the cell in the first workbook. Do it once manually to see the excel formula syntax. 

  • VJR Profile Picture
    7,635 on at

    Just to make sure of the right terminologies, you really meant workbook and not worksheet  🙂

    Michael's suggestions are good to go with both the workbooks.

  • markautomates Profile Picture
    13 on at

    Thanks for the suggestions! What I am really looking for is the how-to do this? Can you perhaps point to a tutorial where Power Automate is being used for this purpose?

  • markautomates Profile Picture
    13 on at

    MichaelAnnis,

     

    This is a crude explanation, but it might help:

    For each record in worksheet1,

      if worksheet2.column(x) = worksheet1.column(A) and

         worksheet2.column(y) = worksheet1.column(B) then apply

         worksheet1.column(C) to each formula found in worksheet2

     

    I can do this with Excel formulas but I am not sure how I might do this with Power Automate Desktop?

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    For PAD to do it would cause 2 loops on your data.  1 loop for each row in worksheet 1 and looping through to possibly find the matching row in worksheet 2.  It's not a good time savings.

     

    If you can do it with Excel formulas, then I would have PAD write the formula and copy it down to the last row.  If that is not an option (such as "if worksheet 2 is not replaced by worksheet 1, then keep the value that already exists in worksheet 2", then put a new formula in a different column with that logic, and then overwrite the old column with the new column.

     

    The other option is Excel VBA, if you know that, then PAD just opens up Excel, runs the macro, and is done.  But the macro will be 100 times faster than PAD with this logic.

  • markautomates Profile Picture
    13 on at

    MichaelAnnis,

     

    It sounds like you're saying that, performance wise, it is best to do any complex logic in code instead of having PAD go through any complex looping and logic. Is that correct? 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Absolutely. Excel VBA is 100x faster than PAD at anything Excel based. 

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 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard