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 / PAD - Append daily dat...
Power Automate
Unanswered

PAD - Append daily data to Excel

(0) ShareShare
ReportReport
Posted on by 64

Hello, 

I have a spreadsheet that contains a list of employee information below, as shown in the example below. How do I append daily data to the list of employees where I want a status count every day? A new column would be added every day in excel for all the employees. I have a total of 10 employees I need to get daily information for. 

Employee Name3/6/2023 Count3/7/2023
Jane Doe10
John Smith20

 

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @MCubedMama ,

     

    Please find the below solution.

     

    Append 1.pngAppend 2.png

     

    Code: 

    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\vr79540\\OneDrive - Cyient Ltd\\Desktop\\Power Automate Desktop\\Practice\\Vehicle Reg\\Input.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    Excel.GetFirstFreeColumnRow Instance: ExcelInstance FirstFreeColumn=> FirstFreeColumn FirstFreeRow=> FirstFreeRow
    DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateOnly CurrentDateTime=> CurrentDateTime
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: CurrentDateTime CustomFormat: $'''dd-MMM-yyyy''' Result=> CurrentDateTime
    SET RowCount TO 2
    SET Counter TO 1
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: CurrentDateTime Column: FirstFreeColumn Row: 1
    LOOP FOREACH CurrentItem IN ExcelData
    Excel.WriteToExcel.WriteCell Instance: ExcelInstance Value: Counter Column: FirstFreeColumn Row: RowCount
    Variables.IncreaseVariable Value: RowCount IncrementValue: 1
    Variables.IncreaseVariable Value: Counter IncrementValue: 1
    END
    Excel.ResizeColumnsOrRows.AutofitAllColumns Instance: ExcelInstance
    Excel.CloseExcel.CloseAndSave Instance: ExcelInstance

     

    Note: if it worked mark it as a solution

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard