web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pasting Excel table in...
Power Apps
Suggested Answer

Pasting Excel table into text input

(0) ShareShare
ReportReport
Posted on by 832
Is there an easy way to paste Excel tables from the clipboard to our apps? What I want to accomplish is for example I have this table: 

If I paste into a multiline text input it pastes like this: 

I need in a different text label to have the info of each column separated by a space, as its shown in the image.
Is this possible?
Categories:
I have the same question (0)
  • Suggested answer
    Gil0 Profile Picture
    106 on at
     
    Adding the following formula to your label's Text property should accomplish transposing your rows into columns:
     
    With(
        {
            words: Split(Substitute(Trim(ipt_YourTextInputControl.Text), Char(10), " "), " "),
            numCols: 4,
            numRows: CountRows(Split(Substitute(Trim(ipt_YourTextInputControl.Text), Char(10), " "), " ")) / 4
        },
        Concat(
            Sequence(numCols) As colIndex,
            Concat(
                Sequence(numRows) As rowIndex,
                Last(
                    FirstN(
                        LastN(words, CountRows(words) - (rowIndex.Value)*numCols),
                        colIndex.Value
                    )
                ).Value & " "
            ) & Char(10)
        )
    )
    Just make sure to replace "ipt_YourTextInputControl" to your actual input control's name.
     
    If my response helped figure out the issue, please mark as resolved so it helps direct others.
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 401

#2
WarrenBelz Profile Picture

WarrenBelz 334 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard