Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Formatting data pasted from Excel into a text box to a variable

(0) ShareShare
ReportReport
Posted on by 248

Hi, have a column of data from Excel however I'm having a tough time formatting it. 

 

Input:

123

456

789

 

I add the data to a variable however it ends up looking like this: "123,456,789,"

Notice quotes are missing from each batch of data and there's a comma at the very end that shouldn't be there.

Here's the formula I'm currently using: Set(abcList,Concat(Split(TextInput1.Text,""),If(IsMatch(Value,"\n"),",",Value)))

 

This is the variable output I desire: "123","456","789"  because I'm sending it over to a Power Automate flow.

 

Any ideas?

 

 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard