cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Write Variable in dynamic column

Hi community,

 

I want to write the variables "First name" and "Last name" into an Excel file. I want Power Automate Desktop to find out for itself in which column the "First name" should be written, depending on the column header in the target file. So that the column is dynamic and the variable is written in, for example, column 1 or whatever.

Has anyone experience in a similar case ? Or even a solution?

example screenshotexample screenshotexcelexcel

1 ACCEPTED SOLUTION

Accepted Solutions
fraenK
Super User
Super User

To make it "dynamic", you'll need to read the Excel file first to get the headers and their column numbers.

"Write to Excel worksheet" only works with column number or letter.

Cloud flows handles Excel files much better.

View solution in original post

1 REPLY 1
fraenK
Super User
Super User

To make it "dynamic", you'll need to read the Excel file first to get the headers and their column numbers.

"Write to Excel worksheet" only works with column number or letter.

Cloud flows handles Excel files much better.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,427)