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
Memorable Member
Memorable Member

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
Memorable Member
Memorable Member

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.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,586)