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 / Create a dual Excel list
Power Automate
Answered

Create a dual Excel list

(0) ShareShare
ReportReport
Posted on by 141

Hi, 

 

I have 35 images to sort, they each contain an image which says the company name (e.g. Kilzipore) and the file name is the Job number_(Random number) E.g. 34572_4383. I would like to create a flow that Logs the Job number (The first 5 numbers) and the Company name next to it (The Job # is in its own cell and the Company name is in its own cell next to this Job number). This needs to log all 35 Jobs in a list format (It isn't always 35 can be as many as 200 or more etc).

 

I know how to get the variables for the Company name (with OCR) so don't worry about that, and getting the variables for each file is obvious enough with 'Get files' (With a Subtext regular expression for the first 5 only. What I don't know is how to log this data correctly to excel in this above described list format. 

 

Does anyone have an idea on how to create this flow? I have already tried and have yet to get something working. 

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @jkingno1 

     

    You should try this approach 

    Nived_Nambiar_0-1681956647435.png

     

     

    First you have to initialize a datatble variable using set variable like with below,

    Nived_Nambiar_1-1681956819176.png

     

    Here i am assuming there are only two columns Company Name and Job Number, 

     

    next, loop through each file and extract the company data and job number and add it to the datatable like below

    Nived_Nambiar_2-1681956894586.png

     

    Here i am assuming that company data and job id is stored in strCompanyName and strJobId variable.

     

    Outside of loop, use write to excel action to write dt1 

     

    Hope this helps you

    Mark it as solution if it resolves your query 🙂

     

  • jkingno1 Profile Picture
    141 on at

    Hi @Nived_Nambiar 

     

    I have done what you've shown, and seems to work well but the Excel only puts the data in A1 and doesn't list it. Could i be doing something wrong? Ill attach some images below of my results 🙂

    Screenshot 2023-04-21 131315.jpg

    Screenshot 2023-04-21 131541.jpg

    Thanks!

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @jkingno1 

     

    Check whether you have assigned dt1/datatable variable correctly

    Nived_Nambiar_0-1682057511903.png

     

    Nived_Nambiar_1-1682057521581.png

     

    adding data to dt1 

    Nived_Nambiar_2-1682057537575.png

     

     

    Try this 

     

    Let me know whether it worked

     

    (Note: there is change in flow with respect to headers, earlier headers where specified in datatable while intializing it using set variable using ^ symbol, but i have observed that while writing data to excel using write excel action, it won't add headers, so to resolve that issue, i have added headers as value while intializing datatble and so headers appears. )

     

     

  • jkingno1 Profile Picture
    141 on at

    Hi @Nived_Nambiar 

    I just saw that and have corrected my mistake, it now works almost exactly how i want, although it list all data only in the A1 column down, with the company name first, then the Job number. Id prefer if the data was beside one another. Again i may have something slightly off, but heres some images of the data i got. 

    Screenshot 2023-04-21 144210.jpg

    Screenshot 2023-04-21 144353.jpg

     

    Thanks!

  • Verified answer
    jkingno1 Profile Picture
    141 on at

    Hi @Nived_Nambiar 

     

    I have made this change to your flow and it does exactly what i need it to, again thanks for your help, i appreciate it a lot. 

    jkingno1_1-1682060417871.png

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard