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 / Lookup Split comma sep...
Power Automate
Suggested Answer

Lookup Split comma separated values from form response & create excel file splitting each value.

(1) ShareShare
ReportReport
Posted on by 2
Hi All,
 
Help is highly appreciated.
 
I have form collecting comma separated values in one of the column like below.
 
 
I want lookup excel file (please see attached sample) with splitted values & create worksheets splitting each in new excel file in power automate
 
Thanks in advance
 
 
Categories:
I have the same question (0)
  • Suggested answer
    sumit_artesian Profile Picture
    21 on at
     
    To achieve this, you will need to format your lookup data in a table. Power Automate can only access Excel values if they are formatted as table rows. To do that, select all of your data, click on "Format as Table," and choose "My table has headers.":
     
    Once you format it as a table, you have to save the Excel file in either OneDrive or a SharePoint document library. Now you can set up the Power Automate flow. Here is how you can set it up:
    1. Use the "When a form submits" trigger.
    2. Add a "Initialize variable" action. Give the variable any name, data type should be Array, and for the value, write an expression like this: split(triggerOutputs()?['text_1'], ','). This will split your comma-separated values and convert them into an array.
    3. Add an "Apply to each" action and set the variable you just initialized as the items.
    4. Add a "Get a row" action from the Excel Online (Business) connector. Choose the OneDrive or SharePoint location where your lookup matrix is and choose the Table name (if you did not rename the table, it would most likely be called Table1). For Key Column, you have to choose Code, and for Key Value, add a dynamic value like this: items('Apply_to_each') 
    5. From here, you can access the product name and the latest date for each comma-separated value and also perform further operations like creating a new file.
     
    Let me know if you need further assistance.
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item.
    If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like! 🩷

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 516

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 470

Last 30 days Overall leaderboard