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 / Copy from Excel and pa...
Power Automate
Answered

Copy from Excel and paste horizontally

(0) ShareShare
ReportReport
Posted on by 62

Hi folks.  I'm looking reformat an Excel spreadsheet to basically group items in a horizontal entry instead of vertical.

 

I have a list of entries in a column, about 10 of them which describe a person.  Name, address, etc.  The data is produced through a SQL query and stored in Excel.  

I would like to reformat the data to have 10 columns of data, with each row containing the person's information.

 

As I understand it, I need to copy a range of cells and then write them to another worksheet.  What I can't do is have them written horizontally, instead of vertically.

 

Your help is greatly appreciated.

 

 

 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Copy

    in new tab

    right click -> Paste Special -> Transpose -> Ok

     

    If you still need to automate it, you should be able to use hot keys to do paste special transpose. I think {Menu} is the right click button in send keys and then hover your mouse over the transpose symbol to see what the hotkey is.

     

    best of luck. 

  • CKN Profile Picture
    58 on at

    you could try something like this

    CKN_1-1675055907075.png

     

    The datatable created is a 10x10

  • dashort Profile Picture
    62 on at

    CKN thanks so much.  Is there a way for me to iterate through the entire resultset using this approach?  ie. additional records...

     

     

  • Verified answer
    CKN Profile Picture
    58 on at

    Set the datatable up as a 1 row, 10 columns
    Adjust the excel range from a1:j10 to a1:z10 (or some other column to finish that is outside the range of input data)
    Adjust the loop 0 to 9 to be 0 to (number of columns input)-1. It was 9 which is a:j (10 columns) -1
    If input is a1:z10, loop is 0 to 25 like this

    CKN_0-1675116982776.png

     

  • dashort Profile Picture
    62 on at

    Thank you so much for taking the time to assist.  You're the best!

     

     

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard