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 and Paste issue i...
Power Automate
Unanswered

Copy and Paste issue in Power automate desktop in Excel

(0) ShareShare
ReportReport
Posted on by 203

Hi Everyone,

 

I need to copy data from a pivot table and paste it into an Excel sheet where permanent headers are present. The challenge is that the pivot table may not always have the same headers. For example, in the snapshot below, the table has four headers: Apple, Ball, Cat, and Dog. However, sometimes the pivot table may not include the "Cat" header. In such cases, I need to copy and paste the data while leaving the "Cat" column empty. How can I achieve this in powerautomate desktop flow ?

Ahmedmuz_0-1696426084217.png

 

Best Regards 

Ahmed

 

 

 

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

    So I’ll refer to the pivot table as the Pivot tab and the output table as the Header tab. 

    on the Header tab,

    get FirstFreeRow/firstfreecolumn save them to %FFRowHeader% and %FFColHeader%

     

    assuming your pivot table starts in A1

    get first free row on column A, save it to %FFRowPivot%

    In the Pivot tab, copy A2 to %FFColHeader - 1%

    In the Header tab, paste in A3

  • Ahmedmuz Profile Picture
    203 on at

    Can you give me a Powerautomate desktop flow snap shot for better understanding? 

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard